mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:41:17 +08:00
Merge branch 'chore_polish_writing_stories' of https://github.com/storybookjs/storybook into chore_polish_writing_stories
This commit is contained in:
commit
c8e3c1e1d5
@ -185,7 +185,7 @@ If you need, you can also adjust your `play` function to find elements based on
|
||||
|
||||
## Working with the Canvas
|
||||
|
||||
With each interaction you write inside your `play` function when Storybook executes it, it starts from the top-level element of the Canvas, acceptable for smaller components (e.g., buttons, checkboxes, text inputs). For complex components (e.g., forms, pages), we recommend that you adjust your stories and start from the component's root, for example:
|
||||
By default, each interaction you write inside your `play` function will be executed starting from the top-level element of the Canvas. This is acceptable for smaller components (e.g., buttons, checkboxes, text inputs), but can be inefficient for complex components (e.g., forms, pages). To accommodate this, you can adjust your interactions to start execution from the component's root. For example:
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user