Adds args Youtube tutorial to the documentation

This commit is contained in:
jonniebigodes 2023-02-16 22:18:54 +00:00
parent 2937cace0a
commit 8f875ed9b7

View File

@ -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 Storybooks 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 args value changes, the component re-renders, allowing you to interact with components in Storybooks UI via addons that affect args.