Button

import

import { Button } from 'sve-ui'

Example

<Button color="red" onClick={console.log('example')}>Example</Button>

Props

label

Description: A label o title for the button.
Type: string
Default: 'Button'

onClick

Description: A function that will be executed when the button is clicked.
Type: function
Default: () => {}

color

Description: A color for the button.
Type: 'blue', 'red', 'green'
Default: 'blue'

size

Description: The size of the button.
Type: 'xsm', 'sm', 'md', 'lg', 'xl', 'xxl', 'xxxl'
Default: 'md'

disabled

Description: A boolean that indicates if the button is disabled.
Type: boolean
Default: false

style

Description: A boolean that indicates if the button is disabled.
Type: boolean
Default: false

bg

Description: The background color of the button.
Type: string
Default: none

Site docs & library under construction. See the npm package in npm Sve-UI