From 0054a8796944a9cda50b6f1546d62716fe727d28 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 15 Oct 2020 07:37:37 +0200 Subject: [PATCH] Update argtypes.md As a user I miss to read that it is possible to override argTypes in a single story --- docs/api/argtypes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api/argtypes.md b/docs/api/argtypes.md index 5112246008c..2cffb39efff 100644 --- a/docs/api/argtypes.md +++ b/docs/api/argtypes.md @@ -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. +
+ +NOTE: Just as it happens with other properties (such as `args`), `argTypes` can be overridden in a single story. + +
+ #### 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: