Update controls.mdx

This commit is contained in:
Charles de Dreuille 2024-06-15 18:52:11 +01:00
parent 508bc6786a
commit b37e9a272e

View File

@ -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: