mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 07:26:48 +02:00
Keep demo values fixed
This commit is contained in:
parent
53906b1acf
commit
e032f6f993
5 changed files with 83 additions and 42 deletions
|
@ -12,6 +12,7 @@ const Switch: React.VoidFunctionComponent<SwitchProps> = ({
|
|||
checked = false,
|
||||
onChange,
|
||||
srDescription,
|
||||
...rest
|
||||
}) => {
|
||||
return (
|
||||
<HeadlessSwitch
|
||||
|
@ -24,6 +25,7 @@ const Switch: React.VoidFunctionComponent<SwitchProps> = ({
|
|||
"bg-green-500": checked,
|
||||
},
|
||||
)}
|
||||
{...rest}
|
||||
>
|
||||
{srDescription ? <span className="sr-only">{srDescription}</span> : null}
|
||||
<span
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue