Tag#
Import#
import { Tag } from 'bumbag'
Usage#
Hello world
Editable example
Colors#
Primary
Secondary
Info
Success
Warning
Danger
Editable example
Tints#
Default
Primary
Secondary
Info
Success
Warning
Danger
Editable example
Outlined#
Default
Primary
Secondary
Info
Success
Warning
Danger
Editable example
Sizes#
Default
Medium
Large
Editable example
Sets#
Hello
World
This
Is
Me
Editable example
Grouping#
Default
Hello
Editable example
Removable Tags#
Primary
Secondary
Info
Success
Warning
Danger
Editable example
Props#
Tag Props#
onRemove () => any
palette
"default"
| "primary"
| "secondary"
| "success"
| "danger"
| "warning"
| (string & {})size
"default"
| (string & {})
| "small"
| "medium"
| "large"Inherits Box props
use
string
| (ComponentClass<any, any> & { useProps: any; })
| (FunctionComponent<any> & { useProps: any; })className string
children
string
| number
| boolean
| {}
| ReactElement<any, string
| ((props: any) => ReactElement<any, string
| ...
| (new (props: any) => Component<any, any, any>)>)
| (new (props: any) => Component<...>)>
| ReactNodeArray
| ReactPortal
| ((props: BoxProps) => ReactNode)alignX "right" | "left" | "center"
alignY "top" | "bottom" | "center"
variant string
colorMode string
disabled boolean
overrides
{
useCSSVariables?: boolean;
altitudes?: AltitudesThemeConfig;
borders?: BordersThemeConfig;
borderRadii?: BorderRadiiThemeConfig;
... 95 more ...;
Template?: TemplateThemeConfig;
}elementRef ((instance: any) => void) | RefObject<any>
themeKey string
Theming#
Tag.styles.baseHello world
Tag.Content.styles.baseHello world
Tag.Close.styles.baseHello world
Tag.styles.sizes.defaultHello world
Tag.styles.sizes.mediumHello world
Tag.styles.sizes.largeHello world
On this page
