TreeSection

Section header for the channel tree with a label, horizontal rule, and optional action link.

Import

import { TreeSection } from "@gumtree/ui/chat/TreeSection";

Props

PropTypeDefaultDescription
label*string-Section label (rendered uppercase)
actionstring-Action link text (e.g. '+ New')
actionHrefstring-URL for the action link

Examples

With and Without Action

Channels+ New
Repositories
<TreeSection label="Channels" action="+ New" />
<TreeSection label="Repositories" />