Forge Developer

Beta

Forge Developer

Beta

Rate this page:

ButtonSet

A layout container for multiple buttons.

Usage

1
import ForgeUI, { ButtonSet } from '@forge/ui';

Props

NameTypeRequiredDescription
childrenArray<Button>YesThe buttons to display in the set. On large-width devices, the buttons are rendered in a row that wraps to fit. On mobile devices, the buttons are full-width.

Example

A simple set of buttons to display user actions.

1
2
3
4
<ButtonSet>
  <Button text="Allow" onClick={handleAllow} />
  <Button text="Deny" onClick={handleDeny} />
</ButtonSet>

Preview

Screenshot of what the rendered button set should look like

Rate this page: