@solid-aria/toggle
v0.1.3
Published
Primitives for building toggle components like checkboxes and switches.
Downloads
6,846
Readme
@solid-aria/toggle
Primitives for building toggle components like checkboxes and switches.
Installation
npm install @solid-aria/toggle
# or
yarn add @solid-aria/toggle
# or
pnpm add @solid-aria/toggle
createToggleState
Provides state management for toggle components like checkboxes and switches.
How to use it
See the docs of createCheckbox for an example of createToggleState
.
createToggle
Handles interactions for toggle elements, e.g. Checkboxes and Switches.
How to use it
See the docs of createCheckbox for an example of createToggle
.
Changelog
All notable changes are described in the CHANGELOG.md file.