Skins UI

Flat switch

A quiet grey track that fills with your colour when it turns on.

Customize

Props
Size

Installation

npx shadcn@latest add https://skinsui.dev/r/switch-flat.json

Usage

usage.tsx
import { Switch } from "@/components/skins/switch-flat";<Switch label="Email updates" defaultChecked />

Props

  • labelNone
    string

    The visible name of the setting. Without one, pass aria-label.

  • defaultCheckedfalse
    boolean

    On when it first renders.

  • disabledfalse
    boolean

    Dims it and blocks interaction.

  • size"md"
    "sm" | "md"

    Small or medium. The label grows with it.