Skip to content

Commit

Permalink
📝 update button.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Dec 4, 2024
1 parent ceb36f9 commit 5f0c121
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/docs/content/components/buttons/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ description: Buttons have label text that describes the action that will occur i

<usage></usage>

> Notice! Button component under react-router Link component will cause refresh page.
- Solution 1: add onPress(e=>e.preventDefault()) to Button component
- Solution 2: put Link component under Button component

## Props

| Name | Type | Default | Description |
Expand Down

0 comments on commit 5f0c121

Please sign in to comment.