import { Empty } from 'sud-ui';빈 상태를 표시할 때
import { Card, Empty } from "sud-ui";
export default function App() {
return (
<Card shadow="none" style={{ width: "100%" }}>
<Empty />
</Card>
);
}import { Card, Empty } from "sud-ui";
import { DocumentOutline } from "sud-icons";
export default function App() {
return (
<Card shadow="none" style={{ width: "100%" }}>
<Empty
icon={<DocumentOutline />}
iconSize="50"
iconColor="volcano-3"
/>
</Card>
);
}import { Card, Empty } from "sud-ui";
export default function App() {
return (
<Card shadow="none" style={{ width: "100%" }}>
<Empty
description="Not Found Data"
color="neutral-4"
suite="EB"
size="xl"
/>
</Card>
);
}속성 이름 | 설명 | 타입 | 기본값 |
|---|
| icon | 커스텀 아이콘 (ReactElement) | ReactElement | - |
| iconSize | 아이콘 크기 | string | number | 30 |
| iconColor | 아이콘 색상(palette값 또는 HEX code) | string | neutral-6 |
| description | 빈 상태에 표시할 텍스트 | ReactNode | "No Data" |
| pretendard | Pretendard 폰트 스타일 | T | EL | L | R | M | SB | B | Black | R |
| gmarket | Gmarket 폰트 스타일 | Light | Medium | Bold | - |
| suite | Suite 폰트 스타일 | L | R | M | SM | B | EB | H | - |
| fontFamily | 커스텀 폰트 패밀리 | string | - |
| size | 텍스트 크기 | xs | sm | base | lg | xl | 2xl | 3xl | 4xl | base |
| weight | 텍스트 굵기 | light | normal | medium | semibold | bold | normal |
| as | HTML 태그 | string | span |
| color | 텍스트 색상(palette값 또는 HEX code) | string | neutral-8 |
| style | 컨테이너에 적용할 추가 스타일 | CSSProperties | {} |
| className | 컨테이너에 적용할 추가 클래스명 | string | "" |