Skins UI

Clay switch

A puffy track in a tint of your colour, with a soft round thumb.

Customize

Props
Size

Installation

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

Usage

usage.tsx
import { Switch } from "@/components/skins/switch-clay";<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.