TableHead

Props

Prop
Type
Default
Description

variant

'text' | 'button' | 'checkbox' | 'dropdown'

-

타입

title

string

-

헤더 타이틀

leftSlot

React.ReactNode

-

타이틀 좌측 영역 (variant가 text, button일 경우)

rightSlot

React.ReactNode

-

타이틀 우측 영역 (variant가 text, button일 경우)

contained

boolean

-

헤더 영역 contained 여부

children

React.ReactNode

-

커스텀 헤더 컴포넌트 (variant가 dropdown일 경우)

table

Table<TData>

-

ColumnDef의 head props (variant가 checkbox일 경우)

Usage

<TableHead
  variant={'text'}
  title={'헤드'}
  contained
/>

Last updated