@professorragna/form
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Form Styled Components

A collection of styled components for the <form> HTML tag, and other form-related HTML tags including:

  • fieldset
  • input
  • label
  • legend
  • textarea

Installation

$ npm i @professorragna/form

Usage

import {
  Fieldset,
  Form,
  Input,
  Label,
  Legend,
  Textarea,
} from '@professorragna/form';

<Form>
  <Fieldset>
    <Legend>This is a form legend</Legend>
    <Label>This is a form label</Label>
    <Input
      placeholder="This is an input field"
    />
    <Textarea
      placeholder="This is a textarea"
    />
  </Fieldset>
</Form>

Each of the form styled components in this package support the following categories of styled props:

  • background
  • border
  • color
  • flexbox
  • grid
  • layout
  • position
  • shadow
  • space
  • typography

For more information on how to use styled props, see the styled-system docs

Additional Packages

Are you looking for additional styled components for other HTML tags? Feel free to check out the root project here for other packages that are available!

Package Sidebar

Install

npm i @professorragna/form

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

17.9 kB

Total Files

44

Last publish

Collaborators

  • professorragna