1.0.6 • Published 2 months ago

@raddix/switch v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Features

  • Full support for browser features.
  • Accessible to screen reader and keyboard navigation.
  • Doesn’t implement any rendering or impose a DOM structure, unstyled.
  • Fully-typed API

Installation

Install the primitive from your command line.

yarn add @raddix/switch
#or
pnpm add @raddix/switch

Usage

This is a simple example of how to use it. To see the options and more modes of use here.

import { useSwitch } from '@raddix/switch';
import './styles.scss';

const Switch = props => {
  const { switchProps } = useSwitch(props);

  return <div {...switchProps} className='switch'></div>;
};
1.0.6

2 months ago

1.0.2

10 months ago

1.0.5

6 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-canary.1

1 year ago

1.0.0-beta.1

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago