Next Chapter Begins 🚀Read the full story

IconField

IconField wraps an input and an icon.

⌘+K
US
preview

Installation#

npx shadcn@latest add https://primereact.dev/r/iconfield.json

Usage#

import { IconField, IconFieldInset } from '@/components/ui/iconfield';
<IconField>
    <IconFieldInset />
</IconField>

Examples#

Basic#

basic-demo

Clickable#

clickable-demo

Sizes#

sizes-demo

Accessibility#

Screen Reader#

IconField and IconFieldInset do not require any roles and attributes.

Keyboard Support#

Component does not include any interactive elements.