HeaderAction

A top navigation bar for action screens with close button, title, glass icon buttons, and optional action button.

Installation

npx chilli@latest add action-navigation

Default

Create
Edit
Preview

States

Default

Default

With border

With Border

Scrolled

Scrolled

With Button

New Action

API Reference

ActionNavigation

PropTypeDefaultDescription
titlestring"title"The title text displayed in the center.
variant"mobile" | "desktop" | "auto""auto"The breakpoint variant.
borderbooleanfalseWhether to show a bottom border.
scrolledbooleanfalseWhether to show the scrolled state with backdrop blur.
showClosebooleantrueWhether to show the close (X) button.
onClose() => voidCallback when the close button is clicked.
showButtonbooleanfalseWhether to show the action button (e.g. 'next').
buttonLabelstring"next"Label for the action button.
actionsReactNodeShare + More iconsCustom action elements for the right side.