Files
Liu 8948f14c9f docs(examples): remove the shadcn branding from the demos
- use username for the sidebar user menu
- use example.com/username in the input-group button placeholder
- apply the change to the C, XML and TSX variants
2026-11-22 20:11:22 +08:00

38 lines
1.0 KiB
TypeScript

import {
Icon,
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
Widget,
} from "@lcui/react";
export default function Example() {
return (
<Widget className="flex w-full max-w-sm flex-col gap-6 clip-safe">
<InputGroup>
<InputGroupInput placeholder="https://example.com/username" />
<InputGroupAddon align="inline-end">
<InputGroupButton size="icon-xs">
<Icon name="copy" />
</InputGroupButton>
</InputGroupAddon>
</InputGroup>
<InputGroup>
<InputGroupInput placeholder="Type to search..." />
<InputGroupAddon align="inline-end">
<InputGroupButton variant="secondary">Search</InputGroupButton>
</InputGroupAddon>
</InputGroup>
<InputGroup>
<InputGroupInput placeholder="https://" />
<InputGroupAddon align="inline-end">
<InputGroupButton size="icon-xs">
<Icon name="star" />
</InputGroupButton>
</InputGroupAddon>
</InputGroup>
</Widget>
);
}