mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:51:17 +08:00
Adds args Youtube tutorial to the documentation
This commit is contained in:
parent
2937cace0a
commit
8f875ed9b7
@ -2,6 +2,8 @@
|
||||
title: 'Args'
|
||||
---
|
||||
|
||||
<YouTubeCallout id="0gOfS6K0x0E" title="Build better UIs with Storybook Args" />
|
||||
|
||||
A story is a component with a set of arguments that define how the component should render. “Args” are Storybook’s mechanism for defining those arguments in a single JavaScript object. Args can be used to dynamically change props, slots, styles, inputs, etc. It allows Storybook and its addons to live edit components. You _do not_ need to modify your underlying component code to use args.
|
||||
|
||||
When an arg’s value changes, the component re-renders, allowing you to interact with components in Storybook’s UI via addons that affect args.
|
||||
|
Loading…
x
Reference in New Issue
Block a user