Table

Table는 데이터를 행과 열로 구성하여 구조화된 방식으로 표시하는 컴포넌트입니다.

Table 컴포넌트는 순수한 뷰(View) 역할에 집중하여 기본적인 구조와 스타일만을 제공합니다. 복잡한 상태 관리와 로직을 바탕으로 대량의 데이터를 다루는 Data Table을 구현하려면 Table Block 문서를 참고해주세요.


Props Table


Table.Root

Root of the Table compound component, which displays data in rows and columns. Renders a <table> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Header

Group of header rows at the top of the table. Renders a <thead> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Body

Group of rows that hold the main data of the table. Renders a <tbody> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Footer

Group of rows at the bottom of the table, such as totals or summaries. Renders a <tfoot> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Row

Row of cells in the table, separated from the next row by a border. Renders a <tr> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Heading

Header cell that labels a column or row. Renders a <th> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Cell

Data cell in a table row. Renders a <td> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.ColumnGroup

Group of Table.Column parts that set the width or style of the table's columns. Renders a <colgroup> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

Table.Column

Column inside Table.ColumnGroup, used to set the width or style of one or more columns. Renders a <col> element.

PropDefaultType
className?
-
stringfunction
style?
-
React.CSSPropertiesfunction
render?
-
ReactElementfunction

On this page