Components

AlertDialogBadgeButtonCheckboxChipDrawerFormFieldIconIconButtonInputKbdLabelPopoverPortalProgressRadioGroupSlotSpinnerSwitchTabsTagTextareaVisuallyHidden

Hooks

useCombinedStateuseMergeRefsuseMountedState

Switch

A control that allows the user to toggle between checked and not checked.

  • Name@spark-ui/switch
    Version2.1.2
    LicenseMIT
    npmgithubReported IssuesReport a bug
  • UsageProps

    Install#

    npm install @spark-ui/switch

    Import#

    import { Switch } from "@spark-ui/switch";
    Edit this page on Github.
    Previousspinner
    Nexttabs
    InstallImport