v3.0.3
- 8f338c8 refactor(:label:)
Improved typings for Switch
:
- Exporting
SwitchProps
type
prop now accepts onlycheckbox
andradio
values
import { Switch, SwitchProps } from 'pretty-checkbox-react';
function App() {
return <Switch type="number" /> // results in ts error
}