Skip to main content

Button

The button component is SfButton.

Usage

Imports

import { SfButton } from 'react-sf-building-blocks'

Usage

Result
Loading...
Live Editor

Variants

Result
Loading...
Live Editor

Disabled

Result
Loading...
Live Editor

Icon

import {ArrowRight} from 'react-bootstrap-icons';
Result
Loading...
Live Editor

Props

PropTypeMandatoryDescription
variantstringyestheme variant such as primary, secondary, danger, etc.
typestringyestheme type such as filled or outlined
captionstringyesbutton text
onClickcallbackyesonClick callback function
disabledbooleannoflag to disable the button
themeobjectnosuperflows theme object
iconobjectnobootstrap icon to be shown after the text
classNamestringnoany classes that need to passed
stylesstringnoany styles that need to passed