2024.09.03(화) TIL
Storybookstorybook 공식에 나와 있는 예제를 따라하면 오류가 난다고 해서… 기본 예제를 그냥 복붙해서 가져다 쓰는 게 마음이 편하다.DesciprtionButtonProps에 적힌 내용이 Description 열에 들어간다. 근데 응집도를 더 높이는 방법을 추천한다. export interface ButtonProps { /** * Is this the principal call to action on the page? */ primary?: boolean; backgroundColor?: string; size?: 'small' | 'medium' | 'large'; label: string; onClick?: () => void; }argTypes 내부에..
카테고리 없음
2024. 9. 3. 22:44