Skip to content

Commit 0e4bdbe

Browse files
committed
feat(UI): add support of ReactNode lable to pill component
1 parent 1f2a50d commit 0e4bdbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datahub-web-react/src/alchemy-components/components/Pills/Pill.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const meta: Meta = {
3434
label: {
3535
description: 'Label for the Pill.',
3636
table: {
37-
defaultValue: { summary: defaults.label },
37+
defaultValue: { summary: defaults.label as string },
3838
},
3939
control: {
4040
type: 'text',

datahub-web-react/src/alchemy-components/components/Pills/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface PillPropsDefaults {
99
}
1010

1111
export interface PillProps extends Partial<PillPropsDefaults>, Omit<HTMLAttributes<HTMLElement>, 'color'> {
12-
label: string;
12+
label: React.ReactNode;
1313
color?: ColorOptions;
1414
rightIcon?: string;
1515
leftIcon?: string;

0 commit comments

Comments
 (0)