top of page
<Toggle/>
code exemple.
import { Toggle } from 'hs-uilib'
​
function App() {
return <Toggle activeBackground="#219ebc" disableBackground="#edede9" onClick={() => ()} />
}
​
Component.
disabled
active
Props.
Title | Type | Default | Description |
|---|---|---|---|
disableBackground | string | #edede9 | Disable Background Color |
activeBackground | string | #219ebc | Active Background Color |
onClick | Func | When click triggers a function |
bottom of page