Storybook
ComponentMeta
メタデータ
ComponentMeta<typeof hoge> はメタデータの型定義
メタデータの中にparameterを入れることでstoryのトップレベルに設定を追記できる
title は名前
component は使うコンポーネント
args は引数
ComponentStoryObj
play 関数
ユーザーの操作が必要なところを操作してくれる関数
あらかじめ import { userEvent, within } from '@storybook/testing-library' しておく
https://storybook.js.org/docs/react/writing-stories/play-function#writing-stories-with-the-play-function
https://testing-library.com/docs/queries/about
https://testing-library.com/docs/user-event/intro
https://storybook.js.org/showcase/
Storybookの使い方事例