Skip to content

ButtonGroup variant "list" throws error/does not show "label" #2153

@DerekJacobi

Description

@DerekJacobi

When using the list variant for the ButtonGroup component:

<ButtonGroup
    labels={{ label: 'Font Style' }}
    variant="list" >

The following error is thrown:

Failed prop type: Invalid prop "variant" of value "list" supplied to "SLDSButtonGroup", expected one of ["checkbox"].

The label passed into the labels prop also does not show, unless the variant is checkbox. It does not show with the list, or an empty variant.

https://react.lightningdesignsystem.com/components/button-groups/#prop-labels

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions