React Button Group Component API

Button Group API

Rocket
New Year sale. Skyrocket your business in 2025!
Extra 25% off for all sale items + Free CoreUI Icons PRO with every order!
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.

Explore the API reference for the React Button Group component and discover how to effectively utilize its props for customization.

On this page

CButtonGroup#

import { CButtonGroup } from '@coreui/react'
// or
import CButtonGroup from '@coreui/react/src/components/button-group/CButtonGroup'
PropertyDefaultType
className#-string

A string of all className you want applied to the base component.

size#-'sm', 'lg'

Size the component small or large.

vertical#-boolean

Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.

CButtonToolbar#

import { CButtonToolbar } from '@coreui/react'
// or
import CButtonToolbar from '@coreui/react/src/components/button-group/CButtonToolbar'
PropertyDefaultType
className#-string

A string of all className you want applied to the base component.