ThemeToggle

A button that switches the site between light and dark mode, persisting the choice to localStorage and a cookie.

Installation

npx dafink-ui add theme-toggle

Demo

Props

NameTypeDefaultDescription
classNamestring''Additional classes on the root button.