@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
50 lines (32 loc) • 845 B
Markdown
id: Label group
section: components
cssPrefix: pf-c-label
propComponents: ['LabelGroup', 'Label']
beta: true
ouia: true
import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
## Examples
### Basic
```ts file="LabelGroupBasic.tsx"
```
### Overflow
```ts file="LabelGroupOverflow.tsx"
```
### Category
```ts file="LabelGroupCategory.tsx"
```
### Category removable
```ts file="LabelGroupCategoryRemovable.tsx"
```
### Vertical category overflow removable
```ts file="LabelGroupVerticalCategoryOverflowRemovable.tsx"
```
### Editable labels
```ts file="LabelGroupEditableLabels.tsx"
```
### Editable labels with add button
For additional documentation that showcases adding a new label, see [label group demos](/components/label-group/react-demos).
```ts file="LabelGroupEditableAdd.tsx"
```