Input

Documentation and examples for the Input component.

Preview

Properties

PropTypeDefaultDescription
placeholderstring"Input text here..."Text displayed when empty.
iconLucideIconSearchThe visual icon displayed on the right.
onChange() => void-Function called when text changes.
classNamestringdefault classesTailwind overrides.

Usage

Follow these steps to add and use Input.

1

Create next app (skip if you already have setup a next app)

terminal
npx create-next-app@latest --yes
2

Install

terminal
npx modui-uikit@latest add input
3

Implement

typescript
import { Input } from '@/components/ui/input';
  import { Image } from 'lucide-react';
  
  export default function Example() {
    return (
      <Input 
          placeholder="This is a placeholder..."
          icon={Image}
      />
    )
  }