Skip to content

Button

Buttons represent actions that are available to the user.

import { Button } from '@fintech-sandpit/ui/react';
return (
<Button
colorScheme="primary"
size="lg"
variant="outline"
>
Click me
</Button>
);
NameTypeRequiredDefaultDescription
colorSchemeColorSchemeneutralColor scheme
sizeSizemdButton size
variantButtonVariantsolidVisual variant
disabledbooleanfalseDisabled state
loadingbooleanfalseLoading state
leftIconIconDefinitionLeft icon definition 1
rightIconIconDefinitionRight icon definition 1
asChildbooleanfalseUse the provided child element as the default element
  1. See Icons for the list of available icon definitions.
NameArgumentsDescription
onClickMouseEventClick event
type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
type ButtonVariant = 'solid' | 'subtle' | 'outline' | 'ghost' | 'unstyled'