Carregando…
Carregando…
Carregando…Hierarchical table with expand/collapse for nested rows and custom cell renderers.
Tree Table — expandable hierarchy with toggle controls
| Name | Type | Size |
|---|---|---|
| src | folder | — |
| public | folder | — |
| package.json | file | 1.6 KB |
$ npx kikitocn add tree-table@/lib/utilsimport { TreeTable } from "@/components/ui/cn/tree-table/TreeTable";
export function TreeTableExample() {
return (
<TreeTable />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
columns* | TreeTableColumn[] | — | Definição das colunas: { key, header, width?, render? } |
rows* | TreeTableRow[] | — | Árvore de registros: { id, data, children? } |
defaultExpanded | boolean | false | Expande todos os nós ao renderizar |