Demos
Primary button
<Buttontext="Primary button with text only"on_click={() => {console.log('on_click')}}/>
Secondary button
<Buttonvariant="secondary"onClick={() => {console.log('onClick')}}>Secondary button with text only</Button>
Primary button with icon
<Button text="Primary button with icon" icon="chevron_right" />
Primary button with icon on left
<Button icon_position="left" icon="chevron_left">Primary button with icon on left</Button>
Tertiary button
The tertiary button variant does support newlines while the icon is placed top aligned. You can enable multiline support with the wrap
property.
<Buttonvariant="tertiary"text="Tertiary button with icon on left"icon_position="left"icon="chevron_left"/><Buttonvariant="tertiary"text={<span>Text inside additional span</span>}icon_position="left"icon="chevron_left"left/>
Tertiary button with top placed icon.