Skip to content

Latest commit

History

History

switch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

Installation

npm i winduum

Learn more how to set up Winduum here. Include CSS either globally or to your component (you can't use TailwindCSS layers in per-component CSS)

@import "winduum/src/ui/switch/index.css" layer(components);

or modular (you can use your own props or CSS)

@import "winduum/src/ui/switch/default-props.css" layer(components);
@import "winduum/src/ui/switch/default.css" layer(components);
@import "winduum/src/ui/switch/interactive.css" layer(components);
@import "winduum/src/ui/switch/invalid.css" layer(components);

Local imports

By default, imports are directly from npm so you can leverage updates. You can also copy and paste the code from this directory to your project and remap the imports to local.

@import "@/components/ui/switch/assets/index.css" layer(components);

Docs

Visit docs to learn more about usage examples.