PrimaryButton
Button을 위한 DDS Docs입니다. Button Docs 는 '도담도담'에 사용되늰 모든 Button Component를 관리힙니다. Button은 <DodamFilledButton />
을 사용해서 볼러올 수 있습니다.
Props
text?: React.ReactNode;
children?: React.ReactNode;
textTheme?: keyof DodamTheme;
width?: number;
enabled?: boolean;
typography?: typographyType; ['Body1', 'Bold']
backgroundColorType?: BackgroundColorType; 'Primary' | 'Secondary' | 'Assisitive' | 'Negative'
size: ButtonSizeType;
padding?: CSSProperties['padding'];
onClick?: MouseEventHandler<HTMLButtonElement>;
customStyle?: CSSObject;
icon?: React.ReactNode;
attendants?: attendantsType;
Pirmary Large Button
Enabled
Disabled
Primary Medium Button
Enabled
Disabled
Primary Small Button
Enabled
Disabled
index.tsx
<DodamFilledButton />