byronwade/ui
Application UI

House components · Application UI

Section

A titled settings-style content block with an optional header action, rendering a labelled section heading above a bordered card body; ships with companion SettingsList and SettingRow compound components for building explain-everything config panels.

Feature showcase

Installation

Features

  • 6 examples

    Default, Inline Children, No Header, Setting Row Controls, Stacked Sections, With Action.

API

Props

PropTypeDefaultDescription
titlestring-Section heading rendered as a small semibold label above the card.
descriptionstring-Muted helper text displayed beneath the title.
actionReact.ReactNode-Optional element (e.g. a button) right-aligned beside the title row.
childrenReact.ReactNode-Content rendered inside the bordered card body.
classNamestring-Extra Tailwind classes merged onto the outer <section> element.

Source and related

FilePath
Componentregistry/components/section.tsx
Default examplecontent/examples/section/default.tsx
Inline Children examplecontent/examples/section/inline-children.tsx
No Header examplecontent/examples/section/no-header.tsx
Setting Row Controls examplecontent/examples/section/setting-row-controls.tsx
Stacked Sections examplecontent/examples/section/stacked-sections.tsx
With Action examplecontent/examples/section/with-action.tsx