Buttons represent actions that are available to the user.
import { Button } from '@fintech-sandpit/ui/react';
import { Button } from '@fintech-sandpit/ui/vue';
| Name | Type | Required | Default | Description |
|---|
colorScheme | ColorScheme | | neutral | Color scheme |
size | Size | | md | Button size |
variant | ButtonVariant | | solid | Visual variant |
disabled | boolean | | false | Disabled state |
loading | boolean | | false | Loading state |
leftIcon | IconDefinition | | | Left icon definition 1 |
rightIcon | IconDefinition | | | Right icon definition 1 |
asChild | boolean | | false | Use the provided child element as the default element |
| Name | Type | Required | Default | Description |
|---|
color-scheme | ColorScheme | | neutral | Color scheme |
size | Size | | md | Button size |
variant | ButtonVariant | | solid | Visual variant |
disabled | boolean | | false | Disabled state |
loading | boolean | | false | Loading state |
left-icon | IconDefinition | | | Left icon definition 1 |
right-icon | IconDefinition | | | Right icon definition 1 |
as-child | boolean | | false | Use the provided child element as the default element |
- See Icons for the list of available icon definitions.
| Name | Arguments | Description |
|---|
onClick | MouseEvent | Click event |
| Name | Arguments | Description |
|---|
click | MouseEvent | Click event |
type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
type ButtonVariant = 'solid' | 'subtle' | 'outline' | 'ghost' | 'unstyled'