Skip to main content

css

Description

adds a custom style to a Two State button

Type

string

Example

<div class="demo-box">
<TwoState type={'primary'} css="my" {click}>Click Me</TwoState>
</div>

<style>
/* styling the button in the default state */
.demo-box :global(button.my){
background-color: gold;
color:white;
}

/* styling the button in the pressed state */
.demo-box :global(button.pressed){
background-color: lightgrey;
color:white;
}
</style>

Related article: Styling a button