Skip to main content

Tag

Tag(props: ): ReactElement<WithOptionalTheme<
Tag<AsC,FAsC>(props: StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>): ReactElement<StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>, string | JSXElementConstructor<any>>

Parameters

(Mandatory parameters are in bold)
ParametersTypeDescription
props
asundefined
asundefined
bgColorstring
bgColorstring
bgColorstring
bgColorstring
childrenReactNode
childrenReactNode
childrenReactNode
childrenReactNode
classNamestring
classNamestring
classNamestring
classNamestring
fontColorstring
fontColorstring
fontColorstring
fontColorstring
forwardedAsundefined
forwardedAsundefined
iconReactNode
iconReactNode
iconReactNode
iconReactNode
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
marginBottomMarginProperty<TLength>
marginBottomMarginProperty<TLength>
marginBottomMarginProperty<TLength>
marginBottomMarginProperty<TLength>
marginLeftMarginProperty<TLength>
marginLeftMarginProperty<TLength>
marginLeftMarginProperty<TLength>
marginLeftMarginProperty<TLength>
marginRightMarginProperty<TLength>
marginRightMarginProperty<TLength>
marginRightMarginProperty<TLength>
marginRightMarginProperty<TLength>
marginTopMarginProperty<TLength>
marginTopMarginProperty<TLength>
marginTopMarginProperty<TLength>
marginTopMarginProperty<TLength>
onClick
onClick
onClick
onClick
sizesmall | medium | large
sizesmall | medium | largePartial<>, any>, string | JSXElementConstructor<any>>
sizesmall | medium | large
sizesmall | medium | largePartial<>, any>, string | JSXElementConstructor<any>>
themeany
themeany

Return

The return is of type ReactElement<WithOptionalTheme<