mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(Docs): remove step 2 from "Using use-theme-hook" (#4797)
This commit is contained in:
parent
8f311828ea
commit
c992e7314f
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user