Section footers

Closes a block with a 1px divider and a row of actions: SectionFooter.Root is the row, .Actions the end cluster. One axis, isCard.

Demo

hero
Learn more
import { Plus } from "@untitledui/icons"; import { ButtonGroup, ButtonGroupItem } from "@/components/base/button-group/button-group"; import { Button } from "@/components/base/buttons/button"; import { SectionFooter } from "@/components/application/section-footers/section-footer"; <SectionFooter.Root> <ButtonGroup size="sm" aria-label="Date range" defaultSelectedKeys={["12m"]}> <ButtonGroupItem id="12m">12 months</ButtonGroupItem> <ButtonGroupItem id="30d">30 days</ButtonGroupItem> <ButtonGroupItem id="7d">7 days</ButtonGroupItem> <ButtonGroupItem id="custom" iconLeading={Plus}>Custom</ButtonGroupItem> </ButtonGroup> <Button color="link-gray" href="/docs/application/section-headers">Learn more</Button> <SectionFooter.Actions> <Button color="secondary">Cancel</Button> <Button>Save</Button> </SectionFooter.Actions> </SectionFooter.Root>

In context

in-context

Family

family
SectionFooter.Root
SectionFooter.Actions

Types

cells

One axis, isCard, on the surface each form is for.

Learn more
Section, isCard unset
Learn more
Card, isCard

Compositions

cells

The sheet's three booleans as children, and its divider switch.

Learn more
Section: group, link and actions
Learn more
Card: group, link and actions
actions only
group only
Learn more
divider off, className border-t-0

Tones

cells
Cancel and Save
Cancel and Delete, primary-destructive

Content

cells
Saved 2 minutes ago
status text leading the row
Learn more
short labels, the sheet's Mobile set

Behaviour

cells

The paddings below md, live; a row wider than its column.

Below md

Card, the sheet's Mobile row
Section, the sheet's Mobile row

Overflow

Learn more
a full row in a narrow column, overflowing
Learn more
the same row, short labels