Socket
Book a DemoInstallSign in
Socket

@bdt-component-library/input-label

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdt-component-library/input-label

Input Label component

latest
Source
npmnpm
Version
0.4.6
Version published
Maintainers
2
Created
Source

InputLabel Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of input labels according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
labelstringyesn/aThe text for the input label
hideLabelbooleannon/aSets whether the label is intended for screen readers only
htmlForstringyesn/aSets the label for attr
requiredbooleannofalseDetermines whether or not the label is for a required input
disabledbooleannofalseDetermines label disabled state
clickablebooleannofalseDetermines if the label should have cursor pointer effects
noBottomMarginbooleannofalseDetermines whether or not the label has a bottom margin
nativeRequiredbooleannofalseDetermines whether or not the label is for a required input
onClickfunction(e: event)no() => {}Event handler for onclick event on the label

FAQs

Package last updated on 06 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts