Skip to content

Commit

Permalink
Update controls.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Jun 15, 2024
1 parent 508bc67 commit b37e9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/essentials/controls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Controls can automatically be inferred from arg's name with [regex](https://deve

| Control | Default regex | Description |
| --------- | ---------------------------------------- | --------------------------------------------------------- |
| **color** | <code>/(background|color)$/i</code> | Will display a color picker UI for the args that match it |
| **color** | <code>{`/(backgroundq\|color)$/i`}</code> | Will display a color picker UI for the args that match it |
| **date** | `/Date$/` | Will display a date picker UI for the args that match it |

If you haven't used the CLI to set the configuration, or if you want to define your patterns, use the `matchers` property in the `controls` parameter:
Expand Down

0 comments on commit b37e9a2

Please sign in to comment.