css
Description
Optional. Adds a custom style to the Two State buttonUsage
css?: string;
Example
<TwoState type={'primary'} css="my">Click Me</TwoState>
/* styling the button in the default state */
button.my{
background-color: gold;
color: white;
}
/* styling the button in the pressed state */
button.pressed{
background-color: lightgrey;
color: white;
}
Related article: Styling a button