DocSpace-client/web/ASC.Web.Components/src/components/label
2019-09-08 17:21:30 +03:00
..
index.js web: components: Label added className prop 2019-08-16 13:24:56 +03:00
lebel.stories.js web: components: Moved story for Label + added base test 2019-09-08 17:01:14 +03:00
lebel.test.js web: components: Moved story for Layout + added base test and README.md 2019-09-08 17:21:30 +03:00
README.md web: components: Moved story for Label + added base test 2019-09-08 17:01:14 +03:00

Label

Usage

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

Component displays the field name in the form

Usage


<Label 
    text="First name:" 
    title={"first name"} 
    htmlFor="firstNameField" 
    display="block"
/>

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 - - false Sets the 'display: inline-block' property
display string - - - Sets the 'display' property
title string - - - Title
truncate bool - - false Disables word wrapping
htmlFor string - - - The field ID to which the label is attached
text string - - - Text