# Input

Collects a single line of text or another native input value. Use it with a visible label and clear validation guidance.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Input } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-input--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/inputs), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=65-520)

## Examples

### In a field

A Field gives the input its label, its description and its invalid state.

```tsx
import { Field, FieldDescription, FieldLabel, Input, Stack } from "@kela-systems/ui-components";

export default function InputDefault() {
  return (
    <Stack gap={5} className="w-full max-w-xs">
      <Field>
        <FieldLabel htmlFor="camera-name">Camera name</FieldLabel>
        <Input id="camera-name" defaultValue="Camera 4" />
        <FieldDescription>Operators see this name on the map and in alerts.</FieldDescription>
      </Field>
      <Field data-invalid>
        <FieldLabel htmlFor="operator-email">Operator email</FieldLabel>
        <Input id="operator-email" type="email" defaultValue="noa@" aria-invalid />
        <FieldDescription>Enter a full address, such as noa@kelasys.com.</FieldDescription>
      </Field>
      <Input aria-label="Sector" placeholder="Sector" disabled />
    </Stack>
  );
}
```

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Input

Also takes the attributes of the HTML element it renders.
