# Field
## Usage
Import Tailwind and one full Basecoat style bundle.
```css
@import "tailwindcss";
@import "basecoat-css/vega.css";
```
Or import only the base CSS, Field component CSS, and one style pack.
```css
@import "tailwindcss";
@import "basecoat-css/base.css";
@import "basecoat-css/components/field.css";
@import "basecoat-css/styles/vega.css";
```
Using CDN or bundler imports? See the [Installation page](/installation).
Use `class="field"` for one control and `class="fieldset"` for related controls. Use a native `
### HTML structure
<fieldset class="fieldset">
Native group for related fields. Use <legend> for the label and a following <p> for description.
<div role="group" class="fieldset">
Structural group when <fieldset> is not appropriate. Add aria-label or aria-labelledby.
<div role="group" class="field">
Single field wrapper. Add data-orientation when needed.
<label>
Label for the control. Use for when the control has an id.
<input>, <select>, <textarea>
Native form control. Put aria-invalid="true" on the invalid control, not only on the wrapper.
<section>
Optional content wrapper for label and description when the control sits beside text.
<p>
Helper text or error text. Use role="alert" for validation errors and connect it with aria-describedby.
## Examples
### Input
Choose a unique username for your account.
Must be at least 8 characters long.
### Textarea
Share your thoughts about our service.
### Select
Select your department or area of work.
### Slider
Set your maximum budget (up to $800).
### Fieldset
We need your address to deliver your order.
### Checkbox
Select the items you want to show on the desktop.
Your Desktop & Documents folders are being synced with iCloud Drive. You can access them from other devices.
### Radio
Yearly and lifetime plans offer significant savings.
### Switch
Enable multi-factor authentication. If you do not have a two-factor device, you can use a one-time code sent to your email.