DocSpace-client/web/ASC.Web.Storybook/stories/label/base
2019-08-09 16:10:24 +03:00
..
index.stories.js web: components: added SelectedItem component, and upgrade Text component 2019-08-09 16:10:24 +03:00
README.md web: components: added SelectedItem component, and upgrade Text component 2019-08-09 16:10:24 +03:00

Label

Usage

import { Label } from 'asc-web-components';

Component displays the field name in the form

Usage


<Label isInline={false} title={"first name"} htmlFor="firstNameField">First name:</Label>

Properties

Props Type Required Values Default Description
isRequired bool - - false Indicates that the field to which the label is attached is required to fill
error bool - - - Indicates that the field to which the label is attached is incorrect
isInline bool - - true Sets the 'display: inline-block' property
title string - - - Title
truncate bool - - false Disables word wrapping
htmlFor string - - - The field ID to which the label is attached