The Button component can be used for the user to take actions with a single click, it supports a variety of styles each of them with different semantics.
The basic Button comes in three main variants, each of them with a specific intent in mind. It also support a "disabled" variant, for cases where the button is not actionable.
<Row gap="large" align="center" padding="large" justify="center">
<Button label="Positive" color="positive" onClick={() => {}} />
<Button label="Primary" color="primary" onClick={() => {}} />
<Button label="Negative" color="negative" onClick={() => {}} />
<Button label="Disabled" color="positive" disabled onClick={() => {}} />
<Button label="Dark" color="dark" onClick={() => {}} />
<Button label="Light" color="light" onClick={() => {}} />
</Row>
The bare Button variants fulfill the same function than the basic counterparts but have a lighter style that can be more easily integrated in complex components.
<Row gap="large" align="center" padding="large" justify="center">
<Button bare label="Positive" color="positive" onClick={() => {}} />
<Button bare label="Primary" color="primary" onClick={() => {}} />
<Button bare label="Negative" color="negative" onClick={() => {}} />
<Button bare label="Disabled" color="positive" disabled onClick={() => {}} />
<Button bare label="Dark" color="dark" onClick={() => {}} />
<Button bare label="Light" color="light" onClick={() => {}} />
</Row>
The Button can have a border which will match the current text color
<Row gap="large" align="center" padding="large" justify="center">
<Button border bare label="Positive" color="positive" onClick={() => {}} />
<Button border bare label="Primary" color="primary" onClick={() => {}} />
<Button border bare label="Negative" color="negative" onClick={() => {}} />
<Button
border
bare
label="Disabled"
color="positive"
disabled
onClick={() => {}}
/>
<Button border bare label="Dark" color="dark" onClick={() => {}} />
<Button border bare label="Light" color="light" onClick={() => {}} />
</Row>