field_label
v0.0.4
Published
A brief description of what this project does and who it's for
Downloads
6
Readme
Field Label
A brief description of what this project does and who it's for
Installation
npm install field_labelor
yarn add field_labelUsage/Examples
import { FieldLabel } from "field_label";
function App() {
return (
<div>
<FieldLabel
field={"field_name"}
label={"Field Label"}
className={"custom-className"}
isRequired={true}
colon={true}
style={{ margin: "10px" }}
/>
</div>
);
}Props
| Property | Accepts | Required | Definition | |------------|---------|----------|------------| | field | string | true |Name of the field for which you are giving label. | | label | string | true | This label will be displayed.| | className | string | false | You can pass your custom className hear. | | isRequired | boolean | false | If set as true red asterisk will be shown before the label.| | colon | boolean | false |If set as true colon will be shown after the label.| | style | object | false | You can pass your inline css property object hear. |
