Skip to content

Commit

Permalink
docs: add note to useThemeContext api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewbi committed Jun 12, 2020
1 parent 729b3ca commit bca31d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/docs/theme-classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ const Example = () => {
};
```

:::note

The component calling `useThemeContext` must be a child of the `Layout` component.

```jsx
<Layout>
<Example />
</Layout>
```

:::

## Navbar

### Navbar title & logo
Expand Down

0 comments on commit bca31d0

Please sign in to comment.