Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-react/input

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/input

Styled input component with optional type prop, defaulting to 'text'.

  • 0.9.1
  • npm
  • Socket score

Version published
Weekly downloads
6K
decreased by-0.91%
Maintainers
5
Weekly downloads
 
Created
Source

Input

Import

  import Input from '@govuk-react/input';

Usage

Simple

import { Label, LabelText, HintText, ErrorText, Input } from 'govuk-react'

<Label>
  <LabelText>Example label</LabelText>
  <HintText>Example hint</HintText>
  <ErrorText>Example error</ErrorText>
  <Input value={value} onClick={onClick} />
</Label>

References:

  • https://github.com/alphagov/govuk-frontend/tree/main/src/govuk/components/

TODO:

  • Remove errorColor and provide examples on how to extend the component

Properties

PropRequiredDefaultTypeDescription
errorfalsebool
errorColorundefinedstring
type'text'stringHTML <Input /> type

FAQs

Package last updated on 06 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc