DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
cmd + cCopy URL
EscClose
  • 1.8.1

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Concepts

OverviewCompositionCerberus ContextTesting

Layout

Aspect RatioBleedBoxCenterContainerContainer QueryDividerFlexFloatGridGroupLink OverlayScrollableStackWrap

Components

AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTA ModalDate PickerDialogFieldFieldsetFile UploaderIconButtonInputLoading StatesMarqueeMenuNotificationsNumber InputPaginationPin InputPopoverProgress IndicatorsPrompt ModalRadioRatingSelectSliderSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

Utilities

Client OnlyDownload TriggerEnvironmentFeature FlagsFocus TrapForFormat ByteFormat NumberFormat Relative TimeFormat Relative TimeFrameHighlightJSON Tree ViewLocalePortalPresenceShowSwapsplitPropsTheme

Split Button

A button component that combines a primary action with a dropdown menu for additional actions.

  • npm
  • source
View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

Import

import { SplitButton, MenuItem } from '@cerberus/react'

Basic Usage

The SplitButton component combines a primary action button with a dropdown menu for additional related actions.

It's ideal for situations where you have a primary action that users perform most often, but also want to provide quick access to related secondary actions.

Loading example...

Size

You can customize the size of the SplitButton using the size prop.

Preview

This feature is experimental and may change in future releases. To use this feature upgrade to the latest next version

Loading example...

Shape

You can customize the shape of the SplitButton using the shape prop.

Preview

This feature is experimental and may change in future releases. To use this feature upgrade to the latest next version

Loading example...

Usage

You can customize the usage of the SplitButton using the usage prop.

Preview

This feature is experimental and may change in future releases. To use this feature upgrade to the latest next version

Loading example...

Pending

The SplitButton accepts all standard Button props for the primary action button, allowing you to customize its behavior.

Loading example...

Primitives

The SplitButton component is built using the following primitive components:

ComponentDescription
ButtonGroupGroups the primary button and dropdown trigger together
ButtonThe primary action button
MenuThe dropdown menu container. Renders within parent context.
MenuTriggerThe dropdown trigger (IconButton)
MenuContentThe dropdown menu content container
MenuItemIndividual menu items within the dropdown

API

SplitButton

The SplitButton component accepts the following props along with the same props as the Button component:

NameDefaultDescription
childrenMenuItem components to display in the dropdown
actionTextThe text for the primary action button

The SplitButton component internally uses:

  • ButtonGroup for layout
  • Button for the primary action
  • Menu for the dropdown functionality
  • IconButton for the dropdown trigger

MenuItem

Use MenuItem components as children of SplitButton to define the available actions in the dropdown menu. See the Menu documentation for more details on MenuItem props.

Note

The SplitButton component uses an attached ButtonGroup layout to ensure the primary button and dropdown trigger appear as a single unified control.

On this page

  • Import
  • Basic Usage
  • Size
  • Shape
  • Usage
  • Pending
  • Primitives
  • API
    • SplitButton
    • MenuItem
Edit this page on Github
Save
Save As
Export
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Do your job
Save
Save As
Export