diff options
Diffstat (limited to 'webui/src/components/Label.tsx')
-rw-r--r-- | webui/src/components/Label.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webui/src/components/Label.tsx b/webui/src/components/Label.tsx index 709aceff9..a63398487 100644 --- a/webui/src/components/Label.tsx +++ b/webui/src/components/Label.tsx @@ -26,14 +26,16 @@ const createStyle = (color: Color, maxWidth?: string) => ({ type Props = { label: LabelFragment; + inline?: boolean; maxWidth?: string; className?: string; }; -function Label({ label, maxWidth, className }: Props) { +function Label({ label, inline, maxWidth, className }: Props) { return ( <Chip size={'small'} label={label.name} + component={inline ? 'span' : 'div'} className={className} style={createStyle(label.color, maxWidth)} /> |