@element-public/react-input-label
v5.68.10-alpha.1
Published
Input Label component for Element React
Downloads
422
Keywords
Readme
InputLabel
Description
Input Label is an atomic component most often by other input components such as Checkbox, Radio, Switch. The typical use-case for this component would be in developing a new input component.
Install from Artifactory
- Verify that you have access to (https://docs.int.bayer.com/cloud/devops/artifactory/)[Bayer Artifactory]
- Verify your token is correctly set up in your .npmrc as per the link above
- Verify you have the @element scope configured in your .npmrc
@element:registry=https://artifactory.bayer.com/artifactory/api/npm/npm-platforms-engineering/
- Install the component and themes bundles
npm i @element/react-components @element/themes- alternatively install the component individually along with the themes bundle
npm i @element/react-input-label @element/themes
- alternatively install the component individually along with the themes bundle
Input Label Props
| Name | Type | Default | Required | Description | | --------- | ------- | --------- | -------- | ------------------------------------------------------------------------------- | | className | string | undefined | false | The css class name to be passed through to the component markup. | | disabled | boolean | false | false | Applies disabled styling. | | hideLabel | boolean | false | false | Visibly disable the label, though it will still be available to screen readers. |
Input Label Render Props
| Name | Type | Default | Required | Description | | -------- | --------------- | ------- | -------- | ---------------------------------------------------------------------- | | children | React.ReactNode | null | true | Content to be rendered inside the FormField. Accepts any valid markup. |
