#Tag

#Import

import { Tag } from 'bumbag'

#Usage

Hello world

#Colors

Primary
Secondary
Info
Success
Warning
Danger

#Tints

Default
Primary
Secondary
Info
Success
Warning
Danger

#Outlined

Default
Primary
Secondary
Info
Success
Warning
Danger

#Sizes

Default
Medium
Large

#Sets

Hello
World
This
Is
Me

#Grouping

Default
Hello

#Removable Tags

Primary
Secondary
Info
Success
Warning
Danger

#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 "left" | "right" | "center"

alignY "bottom" | "top" | "center"

altitude string

variant string

colorMode string

disabled boolean

overrides

{
  useCSSVariables?: boolean;
  altitudes?: AltitudesThemeConfig;
  borders?: BordersThemeConfig;
  borderRadii?: BorderRadiiThemeConfig;
  ... 94 more ...;
  Template?: TemplateThemeConfig;
}

elementRef ((instance: any) => void) | RefObject<any>

themeKey string

#Theming

Tag.styles.base
Hello world
Tag.Content.styles.base
Hello world
Tag.Close.styles.base
Hello world
Tag.styles.sizes.default
Hello world
Tag.styles.sizes.medium
Hello world
Tag.styles.sizes.large
Hello world
Copyright © 2020 Jake Moxey