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