ComponentsInputs & forms
Snowdrift Input
A pill search field with rotating placeholders whose text blows away like drifting snow when submitted.
"use client";
import { useId } from "react";
import { SnowdriftInput } from "@/components/miyuki-ui/snowdrift-input";
export default function SnowdriftInputDemo() {
const id = useId();
return (
<div className="flex w-full max-w-lg flex-col gap-3">
<p id={id} className="ps-5 text-sm text-muted-foreground">
Where do you want to wake up?
</p>
<SnowdriftInput
aria-labelledby={id}
placeholders={["A hut above the clouds", "Somewhere with an onsen", "Within two hours of Sapporo"]}
/>
</div>
);
}Install
npx shadcn@latest add @miyuki-ui/snowdrift-inputThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
SnowdriftInput
Prop
Type