@elemental-ui-alpha/fieldset
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Fieldset

import { Fieldset } from '@elemental-ui-alpha/fieldset';

Usage

Wrap the group of related inputs with the fieldset and provide a legend. The Fieldset component extends the Stack component.

<Fieldset legend="Billing Address" gap="large">
  <TextInput label="Address line 1" />
  <TextInput label="Address line 2" placeholder="(optional)" />
  <TextInput label="City" />
  <Columns gap="medium">
    <TextInput label="State" />
    <TextInput label="Postcode" />
  </Columns>
</Fieldset>

Legend Appearance

Though it must be present, you can alter the appearance of the legend:

  • legend (default)
  • label
  • none
<Fieldset legend="What's your name?" legendAppearance="label">
  <Columns gap="medium">
    <TextInput
      label="first name"
      labelVisibility="hidden"
      placeholder="First name"
    />
    <TextInput
      label="last name"
      labelVisibility="hidden"
      placeholder="Last name"
    />
  </Columns>
</Fieldset>

Readme

Keywords

none

Package Sidebar

Install

npm i @elemental-ui-alpha/fieldset

Weekly Downloads

3

Version

0.0.2

License

none

Unpacked Size

12 kB

Total Files

12

Last publish

Collaborators

  • emmatown
  • dsf-release-bot