UI

MAESO UI

Read component guidance, published props, platform support and proof before you install.

Live specimen

Switch 0.2.0Read the Switch page
  • Defaultlight16.95 : 1AA 4.5dark16.95 : 1AA 4.5
  • Disabledlight7.93 : 1AA exemptdark9.07 : 1AA exempt
  • KeyboardSpaceTabShift+Tab
  • measured on 0.2.0
npx shadcn@latest add @maeso/switch
Size
7.0 kB gzipmeasured on 0.2.0

Setup

Add this registry to your project's components.json once, before the first install. Keep your existing settings and other registries.

{
  "registries": {
    "@maeso": "http://127.0.0.1:4321/r/{name}.json"
  }
}

Then install the registry's default theme once, and import its sheet in the CSS entry that imports Tailwind. It paints every item from this registry.

npx shadcn@latest add @maeso/maeso
@import "./styles/theme.web.css";