Keep demo values fixed

This commit is contained in:
Luke Vella 2022-04-15 18:57:13 +01:00
parent 53906b1acf
commit e032f6f993
5 changed files with 83 additions and 42 deletions

View file

@ -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