Components

Rate this page:

This page describes a Forge preview feature. Preview features are deemed stable; however, they remain under active development and may be subject to shorter deprecation windows. Preview features are suitable for early adopters in production environments.

We release preview features so partners and developers can study, test, and integrate them prior to General Availability (GA). For more information, see Forge release phases: EAP, Preview, and GA.

ButtonSet

To add the ButtonSet component to your app:

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

Description

A layout container for multiple buttons.

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

1
2
<ButtonSet>
  <Button onClick={handleAllow}>Allow</Button>
  <Button onClick={handleDeny}>Deny</Button>
</ButtonSet>

Screenshot of what the rendered button set should look like

Rate this page: