React Button Group Component API

Button Group API

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.