Documentation
Welcome to the docs for Nowt UI. Explore components and how to use them effectively.
Input
npm install nowt-ui-libraryimport { Input } from nowt-ui-library๐ฅ Left Icon
<Input label="With Left Icon" placeholder="example@email.com" leftIcon={<Mail size={16} />} value={value} onChange={(e) => setValue(e.target.value)} />๐ Right Icon
๐๏ธ
<Input label="With Right Icon" placeholder="Enter password" type="password" rightIcon={<span style={{ fontSize: 12 }}>๐๏ธ</span>} value={value} onChange={(e) => setValue(e.target.value)} />๐ More Examples & Props
๐ง Email Input
<Input label="Email" placeholder="Enter your email" value={value} onChange={(e) => setValue(e.target.value)} />๐จ Styled Label
<Input label="Styled Label" labelClassName="custom-label" placeholder="With custom label" value={value} onChange={(e) => setValue(e.target.value)} />๐ฆ Container Class
<Input label="Container Class" containerClassName="custom-container" placeholder="Styled container" value={value} onChange={(e) => setValue(e.target.value)} />๐จ Inline Container Style
<Input label="Container Style" containerStyle={{ backgroundColor: '#000', padding: 10 }} placeholder="Styled container" value={value} onChange={(e) => setValue(e.target.value)} />โน๏ธ With Helper Text
Must be unique
<Input label="Username" placeholder="e.g. lokesh_dev" helperText="Must be unique" value={value} onChange={(e) => setValue(e.target.value)} />โ Error State
This is not a valid email
<Input label="Invalid Email" placeholder="example.com" error="This is not a valid email" value={value} onChange={(e) => setValue(e.target.value)} />โ Full Combo
โ
<Input label="Full Combo" labelClassName="text-blue-500" containerClassName="rounded-md shadow" containerStyle={{ marginTop: 20 }} placeholder="All props together" helperText="Everything included" error={value.length < 3 ? 'Min 3 characters' : ''} leftIcon={<User size={16} />} rightIcon={<span style={{ fontSize: 12 }}>โ
</span>} value={value} onChange={(e) => setValue(e.target.value)} />๐ Show Input Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | โ | Text label shown above the input |
| placeholder | string | โ | Placeholder text inside input |
| value | string | โ | Input value |
| onChange | (e) => void | โ | Callback on input change |
| helperText | string | โ | Helper or description text |
| error | string | โ | Error message (red text) |
| type | string | 'text' | Input type (e.g. text, email, password) |
| labelClassName | string | โ | Custom class for label |
| containerClassName | string | โ | Custom class for wrapper div |
| containerStyle | CSSProperties | โ | Inline styles for wrapper |
| leftIcon | ReactNode | โ | Icon element on the left |
| rightIcon | ReactNode | โ | Icon element on the right |
| ...rest | InputHTMLAttributes | โ | All native input props |
Card
npm install nowt-ui-libraryimport { Card } from nowt-ui-library๐งพ Basic Card
๐ Card with Avatar & Badge
๐ฝ More card examples
๐ Progress & Tags
๐ฆ Image + Footer
๐ With Status
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โ๏ธ Actions & Highlight
โจ Props
| Prop | Type | Description |
|---|---|---|
| title | string | Main title |
| subtitle | string | Subtitle text |
| description | string | Optional card description |
| image | string | Optional cover image |
| avatar | string | Optional avatar image (circular) |
| badge | string | Small badge on top-left (e.g., Pro, Beta) |
| tag | string | Highlighted tag above title |
| tags | string[] | Array of tags (displayed as chips) |
| status | "success" | "warning" | "error" | "neutral" | Status dot beside avatar or tag |
| progress | number | Optional progress bar (0-100) |
| theme | "light" | "dark" | Theme styling |
| width | number | Width of the card (default 320) |
| footer | ReactNode | Content shown at bottom |
| actions | ReactNode | Buttons, links, etc. for user action |
| hlight | boolean | Apply hover highlight effect |
TextArea
npm install nowt-ui-libraryimport { TextArea } from nowt-ui-library๐น Full Demo
๐น Width + Label
๐ฝ More TextArea examples
๐น Basic Textarea
๐น Label + Dark Mode
๐น MaxLength + Placeholder + Autosize
โจ Props
| Prop | Type | Description |
|---|---|---|
| label | string | null | undefined | Optional label for the textarea |
| maxLength | number | Maximum number of characters allowed |
| autosize | boolean | Whether the textarea should auto-resize |
| theme | Theme | Custom theme object for styling |
| draftKey | string | Key for saving drafts locally |
| width | string | number | Width of the textarea |
| height | string | number | Height of the textarea |
| emoji | boolean | Enable emoji support inside textarea |
| isMic | boolean | Show microphone for voice input |
| ...rest | React.TextareaHTMLAttributes<HTMLTextAreaElement> | All standard textarea attributes |
โจ Props
| Prop | Type | Description |
|---|---|---|
| value | number | Current rating value (e.g., 3.5 for 3.5 stars) |
| max | number | Maximum number of stars/emojis |
| onChange | (rating: number) => void | Callback function triggered when the rating changes |
| size | number | Size of each star/emoji in pixels |
| color | string | Color of inactive stars/emojis (hex or CSS color) |
| activeColor | string | Color of active stars/emojis (hex or CSS color) |
| readonly | boolean | Disables interaction if true |
| allowHalf | boolean | Enables half-star ratings if true |
| className | string | Additional CSS class for the container div |
| emoji | string | JSX.Element | Custom emoji (e.g., "โค๏ธ") or SVG element |
| tooltip | boolean | Shows rating tooltips on hover if true |
| theme | "default" | "cosmic" | "neon" | "futuristic" | "minimal" | Visual theme for glow, particles, and tooltip styles |
| animation | boolean | Enables animations (click, hover, particles) if true |
| glowIntensity | "low" | "medium" | "high" | Intensity of the glow effect |