Component

ActionRail

Group compact actions vertically or horizontally for toolbars, side rails, and social links.

Interactive preview

Usage

Import the component entry and start with its smallest complete example.

Import

import { ActionRail } from "@chitrank2050/monoline-ui/action-rail"

Basic usage

<ActionRail orientation="vertical">
  <Button variant="ghost" icon>๐Ÿฆ</Button>
  <Button variant="ghost" icon>๐Ÿ™</Button>
  <Button variant="ghost" icon>๐Ÿ’ผ</Button>
</ActionRail>

Usage guidance

Choose the component for its interaction model and semantics before customizing its appearance.

01
Use when

A compact row or column of related buttons and links fits ActionRail well.

02
Avoid when

The controls form primary navigation or need the container to manage selection state.

03
Accessibility

ActionRail adds no control semantics of its own. Keep each child's native semantics, and label the group when the relationship between its controls is not obvious.

04
Server Component

This component can render without adding a Monoline client boundary when its children and props are serializable.

API reference

Props, slots, and callbacks available on this component.

orientationvertical | horizontalFlow direction layout

Implementation

The source used by the example above, including any state it needs.

import { ActionRail } from "@chitrank2050/monoline-ui/action-rail"
import { Button } from "@chitrank2050/monoline-ui/button"

export function Toolbar() {
  return (
    <ActionRail orientation="horizontal">
      <Button variant="secondary">Back</Button>
      <Button>Save</Button>
    </ActionRail>
  )
}