Skip to content

v3.0.3

Compare
Choose a tag to compare
@atomicpages atomicpages released this 30 Sep 16:57

Improved typings for Switch:

  • Exporting SwitchProps
  • type prop now accepts only checkbox and radio values
import { Switch, SwitchProps } from 'pretty-checkbox-react';

function App() {
    return <Switch type="number" /> // results in ts error
}