Label
Label(props: ): ReactElement<WithOptionalTheme<
Label<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)Parameters | Type | Description |
---|---|---|
props | ||
text | string | |
text | stringPartial<>, any>, string | JSXElementConstructor<any>> | |
text | string | |
text | stringPartial<>, any>, string | JSXElementConstructor<any>> | |
as | undefined | |
as | undefined | |
className | string | |
className | string | |
className | string | |
className | string | |
description | ReactNode | |
description | ReactNode | |
description | ReactNode | |
description | ReactNode | |
DescriptionComponent | FC<FieldDescriptionProps> | |
DescriptionComponent | FC<FieldDescriptionProps> | |
DescriptionComponent | FC<FieldDescriptionProps> | |
DescriptionComponent | FC<FieldDescriptionProps> | |
forwardedAs | undefined | |
forwardedAs | undefined | |
help | ReactNode | |
help | ReactNode | |
help | ReactNode | |
help | ReactNode | |
HelpComponent | FC<FieldHelpProps> | |
HelpComponent | FC<FieldHelpProps> | |
HelpComponent | FC<FieldHelpProps> | |
HelpComponent | FC<FieldHelpProps> | |
htmlFor | string | number | |
htmlFor | string | number | |
htmlFor | string | number | |
htmlFor | string | number | |
layout | FormLayout | |
layout | FormLayout | |
layout | FormLayout | |
layout | FormLayout | |
required | boolean | |
required | boolean | |
required | boolean | |
required | boolean | |
size | TshirtSize | |
size | TshirtSize | |
size | TshirtSize | |
size | TshirtSize | |
theme | any | |
theme | any |
Return
The return is of type ReactElement<WithOptionalTheme<