The Switch component is a control that allows the user to toggle between checked and not checked. This component is built on Radix UI primitives and styled with Shadcn UI.

  • Parameters

    • props: Omit<SwitchProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<
          HTMLButtonElement,
      >

    Returns ReactNode

Properties

$$typeof: symbol
defaultProps?: Partial<
    Omit<SwitchProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<
        HTMLButtonElement,
    >,
>
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: WeakValidationMap<
    Omit<SwitchProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<
        HTMLButtonElement,
    >,
>