uiable

Switch Toggle Theme

Component

About

A light/dark theme switch flanked by sun and moon icon buttons; clicking either icon or the switch flips between modes.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Switch Toggle Theme to your project and fits it to your theme.

Code

How Switch Toggle Theme is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SwitchToggleTheme from "@/components/ui/uiable-switch-toggle-theme"

export default function Demo() {
  return <SwitchToggleTheme />
}

Dependencies

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    600
  • Card Tabs

    Card Tabs

    160
  • Financial Bento Grid

    Financial Bento Grid

    157
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    107
  • Marketing Hero Section

    Marketing Hero Section

    107
  • Chart Tooltip

    Chart Tooltip

    100
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    93
  • Attachment States

    Attachment States

    70