Action Row

Buttons that share a row's width equally, 8 px apart, with their content centred: one full-width button, or two side by side. The size lives on the row, so every button and split button in it matches. The row stops at 384 px.

BetaReady to use. Its API can still change in a minor release; the changelog says when.

import { ActionRow } from "@leap-crm/design-system";

Playground

Change a prop and the component follows. Its code is under Props.

Props

size

Best practices

When to use it, and the rules that apply in particular places.

GuidancePractice
DoUse it for one full-width action or two side by side in a narrow column, like New Opportunity under a contact, or Edit and Delete beneath it.
DoSet size on the row, not on the buttons inside, so every button and split button in it shares one height. A split button takes the row's size like any button.
DoKeep at most one primary Button in a row, on the main action, with an outline button beside it, like Cancel and Save.
Don'tPut more than two buttons in one row. Equal widths suit one or two; move the rarer actions into a SplitButton menu.
Don'tUse it in a toolbar or a table row, where buttons should size to their labels. Use ButtonGroup or Toolbar there.

Props

PropTypeDefaultDescription
sizeButtonSize"md"Every button's and split button's size in the row, from Button's scale: md 36 (the default) or sm 32 in a column.
children *ReactNode—What it shows inside.
classNamestring—Classes added to the root element, merged with its own. Tokens only.

Code

What the playground shows, ready to copy.

import { ActionRow, Button } from "@leap-crm/design-system";

<ActionRow>
  <Button intent="outline">Cancel</Button>
  <Button>Save</Button>
</ActionRow>