@citizensadvice/text-inputs

1.0.3 • Public • Published

Text-inputs npm (scoped)

Define styling for the text input components (<input/>, <textarea/>). Enclose both the <label/> and <input/> within a <div/> with the class text-input.

Examples

<div class="text-input">
  <label class="block bold mb-2" for="firstname">Firstname</label>
  <input type="text" id="firstname">
</div>

OR

<div class="text-input">
  <label class="block bold mb-2" for="message">Message</label>
  <textarea id="message"></textarea>
</div>

Installation

$ npm install @citizensadvice/text-inputs

now import into your stylesheet...

@import '@citizensadvice/text-inputs/index.scss';

You can also make use of the unpkg service, try adding the link below to the head of your HTML file

<link src="https://unpkg.com/@citizensadvice/text-inputs@latest/build/text-inputs.css" />

Readme

Keywords

none

Package Sidebar

Install

npm i @citizensadvice/text-inputs

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

5.65 kB

Total Files

8

Last publish

Collaborators

  • cnorthwoodcita
  • seymourski
  • marianayovcheva
  • mrdaniellewis
  • davidsauntson
  • davidrapson