Skip to content

Commit

Permalink
docs: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Mar 6, 2024
1 parent 7fe024f commit ac90453
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ const config = createConfig(
## Using `render` to customize the content of each option

It should be noted that if your dApp supports small screens or light/dark mode, you may need to
write different content for the corresponding scenarios. The `render` callback function will pass
the `layout`(list/grid) and `colorMode`(light/dark) to tell you the current state.
write different content for different states.

You can get the current rendering state from the callback parameters `layout`(list/grid) and
`colorMode`(light/dark) of the render function.

```tsx live=false
metaMask({
Expand Down

0 comments on commit ac90453

Please sign in to comment.