JSPM

@fluentui/react-switch

0.0.0-nightly-20220328-0419.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 198678
  • Score
    100M100P100Q167114F
  • License MIT

Fluent UI React Switch component.

Package Exports

  • @fluentui/react-switch

Readme

@fluentui/react-switch

React Switch components for Fluent UI React

The Switch control (formerly Toggle) enables users to trigger an option on or off through pressing on the component.

STATUS: WIP 🚧

These are not production-ready components and should never be used in product. This space is useful for testing new components whose APIs might change before final release.

Usage

To import Switch:

import { Switch } from '@fluentui/react-switch';

Once the Switch component graduates to a production release, the component will be available at:

import { Switch } from '@fluentui/react-components';

Examples

<Switch />
<Switch defaultChecked={true} />
<Switch checked={switchValue} onChange={switchOnChange} />
<Switch disabled />