1.1.0 • Published 8 months ago

@raddix/switch v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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.1.0

1 year ago

1.0.6

1 year ago

1.0.2

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-canary.1

2 years ago

1.0.0-beta.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago