Files
shadcn-ui/apps/v4/examples/base/input-group-inline-end.tsx
shadcn 7d718ddaa9 fix: refactor styles (#10190)
* feat: refactor styles handling across v4

* fix

* fix

* fix

* fix

* fix

* fix
2026-03-26 14:36:00 +04:00

32 lines
744 B
TypeScript

import { EyeOffIcon } from "lucide-react"
import {
Field,
FieldDescription,
FieldLabel,
} from "@/styles/base-nova/ui/field"
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
} from "@/styles/base-nova/ui/input-group"
export function InputGroupInlineEnd() {
return (
<Field className="max-w-sm">
<FieldLabel htmlFor="inline-end-input">Input</FieldLabel>
<InputGroup>
<InputGroupInput
id="inline-end-input"
type="password"
placeholder="Enter password"
/>
<InputGroupAddon align="inline-end">
<EyeOffIcon />
</InputGroupAddon>
</InputGroup>
<FieldDescription>Icon positioned at the end.</FieldDescription>
</Field>
)
}