Matrix button
Interactive documentation for the matrix button component. Change props in the playground, inspect states, and copy the generated example.
clicks: 0
Preview
Code
<MatrixButton
name="Button"
>
Button
</MatrixButton>States
MatrixButton wraps PrimaryButton with color="midnight" and type="cocaine". Availability controls the final disabled state.
Disabled
Unavailable
Selected
Combinations
Common combinations for available, disabled, and selected states.
| available | disabled | selected | Result |
|---|---|---|---|
| true | false | false | |
| true | true | false | |
| false | false | false | |
| true | false | true | |
| false | false | true |
Props
This table matches the current MatrixButtonProps interface.
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | '' | Fallback button text rendered inside the default slot when no slot content is provided. |
| size | 'xl' | 'xl' | Button size. MatrixButton currently supports only xl and passes it directly to PrimaryButton. |
| disabled | boolean | false | Disables the button when available is true. If available is false, the button is always disabled. |
| available | boolean | true | Controls availability state. When false, the button is disabled and receives the crossed background style. |
| selected | boolean | false | Adds selected visual state with midnight border and outline classes. |