mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Add ThemeProvider
This commit is contained in:
6 files changed
+163
-11
No files matched your search
+17
@@ -75,6 +75,23 @@ The project uses shadcn/ui components located in `@/components/ui`. These are un
|
||||
|
||||
These components follow a consistent pattern using React's `forwardRef` and use the `cn()` utility for class name merging. Many are built on Radix UI primitives for accessibility and customized with Tailwind CSS.
|
||||
|
||||
## Theme Toggle Component
|
||||
|
||||
A pre-built theme toggle component is available for easy integration:
|
||||
|
||||
```tsx
|
||||
import { ThemeToggle } from "@/components/theme-toggle";
|
||||
|
||||
function Header() {
|
||||
return (
|
||||
<header>
|
||||
<h1>My App</h1>
|
||||
<ThemeToggle />
|
||||
</header>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
## Nostr Protocol Integration
|
||||
|
||||
This project comes with custom hooks for querying and publishing events on the Nostr network.
|
||||
|
||||
Reference in new issue
Block a user