Campsite

Theme Toggle

Component 218

About

Theme Toggle

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

Code

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

Usage.tsx

import { ThemeToggle } from "@/components/ui/theme-toggle"

function SettingsPage() {
  return (
    <div className="container">
      <ThemeToggle />
    </div>
  )
}

export { SettingsPage }

Dependencies

More by Campsite

View all
  • System Theme Icon

    System Theme Icon

    37
  • Dark Theme Icon

    Dark Theme Icon

    8