# Text Field (/forms/text-field)





<ComponentPreview name="text-field-preskok-demo" description="Text field with prefix, suffix, and password reveal." />

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger id="cli">
      CLI
    </TabsTrigger>

    <TabsTrigger id="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent id="cli">
    ```bash
    npx shadcn@latest add @preskok/text-field
    ```
  </TabsContent>

  <TabsContent id="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.

        <ComponentSource name="text-field" title="registry/preskok/ui/preskok-ui/text-field.tsx" />
      </Step>

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import { TextField } from "@/components/ui/preskok-ui/text-field"

export function TextFieldDemo() {
  return <TextField label="Email" placeholder="you@example.com" />
}
```
