Update argtypes.md

As a user I miss to read that it is possible to override argTypes in a single story
This commit is contained in:
Alex 2020-10-15 07:37:37 +02:00 committed by GitHub
parent f6a9bbdf96
commit 0054a87969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,12 @@ These values--description, table.type, and controls.type--get merged over the de
In particular, this would render a row with a modified description, a type display with a dropdown that shows the detail, and no control.
<div class="aside">
NOTE: Just as it happens with other properties (such as `args`), `argTypes` can be overridden in a single story.
</div>
#### Using argTypes in addons
If you want to access the argTypes of the current component inside an addon, you can use the `useArgTypes` hook from the `@storybook/api` package: