chore(Docs): remove step 2 from "Using use-theme-hook" (#4797)

This commit is contained in:
աӄա 2025-02-06 00:39:35 +08:00 committed by GitHub
parent 8f311828ea
commit c992e7314f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,24 +204,6 @@ Install `@heroui/use-theme` in your project.
}}
/>
### Add the current theme to the main element
```jsx
// App.tsx or App.jsx
import React from "react";
import {useTheme} from "@heroui/use-theme";
export default function App() {
const {theme} = useTheme();
return (
<main className={`${theme} text-foreground bg-background`}>
<App />
</main>
)
}
```
### Add the theme switcher
Add the theme switcher to your app.