Skip to content

Commit

Permalink
feat: add ResultCategoryCard storybook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yougyung committed Jun 29, 2024
1 parent f4de9fb commit a69adf5
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,40 @@ import { RESULT_CATEGORY } from '@/app/utils/key/result-category.key';
const meta = {
title: 'ui/result/category-card',
component: ResultCategoryCard,
tags: ['autodocs'],
parameters: {
componentSubtitle: '성적 카테고리에 대한 요약정보를 노출할 때 사용하는 컴포넌트로 결과페이지에서 사용됩니다.',
},
argTypes: {
category: {
description: '성적 카테고리의 분류를 표시합니다.',
options: RESULT_CATEGORY,
},
totalCredit: {
description: '카테고리의 총 학점을 표시합니다.',
control: {
type: 'number',
min: 0,
max: 100,
step: 10,
},
},
takenCredit: {
description: '카테고리의 이수 학점을 표시합니다.',
control: {
type: 'number',
min: 0,
max: 100,
step: 10,
},
},
completed: {
description: '카테고리의 충족 여부를 표시합니다.',
control: {
type: 'boolean',
},
},
},
decorators: [(Story) => <Story />],
} as Meta<typeof ResultCategoryCard>;

Expand Down

0 comments on commit a69adf5

Please sign in to comment.