shadcn/ui 구조와 동일한 Table 컴포넌트 데모
기본 Table 컴포넌트 사용 예시
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV001 | Paid | Credit Card | $250.00 |
| INV002 | Pending | PayPal | $150.00 |
| INV003 | Unpaid | Bank Transfer | $350.00 |
TableFooter 컴포넌트를 사용한 합계 표시
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV001 | Paid | Credit Card | $250.00 |
| INV002 | Pending | PayPal | $150.00 |
| INV003 | Unpaid | Bank Transfer | $350.00 |
| Total | $750.00 | ||
TableCell의 rowspan prop 사용 예시
| Country | Courier | Price | Shipping Fee |
|---|---|---|---|
| United States | UPS | US$60 | Free |
| Philippines | EFS | US$50 | Free |
| DHL | US$50 | Free |
각 TableHead에 width 클래스를 직접 지정 (shadcn/ui 방식)
| Product | Category | Price | Description |
|---|---|---|---|
| Wireless Mouse | Electronics | $29.99 | Ergonomic wireless mouse |
| Mechanical Keyboard | Electronics | $129.99 | RGB mechanical keyboard |
각 셀에 text-left, text-center, text-right 클래스 적용
| Left | Center | Right |
|---|---|---|
| Left aligned | Center aligned | Right aligned |
| Text | Text | Text |
Table 컴포넌트 import 및 사용 예시
| Component | Props | Description |
|---|---|---|
Table |
class |
추가 CSS 클래스 |
TableCaption |
class |
캡션 스타일 (예: sr-only) |
TableHead |
scope, class |
scope: 'col' | 'row' | 'colgroup' | 'rowgroup' |
TableCell |
rowspan, colspan, class |
셀 병합 및 스타일 지정 |
각 컴포넌트에 적용된 기본 스타일