🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@govuk-react/input-field

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/input-field

Styled composite component displaying an input with a label and hint text and error text depending on props.

0.10.7
latest
npm
Version published
Weekly downloads
3.6K
22.18%
Maintainers
5
Weekly downloads
 
Created
Source

InputField

Import

  import InputField from '@govuk-react/input-field';

Use the text input component when you need to let users enter text that’s no longer than a single line, such as their name or phone number.

  • https://govuk-react.github.io/govuk-react/?path=/docs/input-field
  • https://design-system.service.gov.uk/components/text-input/

Properties

PropRequiredDefaultTypeDescription
errorbooleanApply error state styling to the component
hintundefinedReactNode
input{}InputProps
marginMargin | Margin[]
mbstring | number
meta{}{ error?: string | string[]; touched?: boolean; }
paddingPadding | Padding[]

FAQs

Package last updated on 13 May 2024

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