mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Update controls.mdx
This commit is contained in:
parent
508bc6786a
commit
b37e9a272e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user