Files
Pasquale Vitiello 9302c06311 refactor: align biome settings with calcom (#718)
* update biome config + resolve issues

* improve the ui:sync command to run organizeImports on packages

* reformat

* build registry

* exclude base-ui stuff

* fix useExportsLast

* further improvements

* silence errors

* exclude examples app

* update biome + reformat

* format all the other files

* include examples app

* improve copyable-field

* remove unwanted comment

* remove a few unneeded biome comments

* avoid nested ternary

* refactored some shared components

* upgrade base ui to 1.2.0

* fix
2026-03-11 23:09:19 +00:00

34 lines
1.1 KiB
TypeScript

import { ClockIcon } from "lucide-react";
import { useId } from "react";
import { Label } from "@/registry/default/ui/label";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/registry/default/ui/select";
export default function Component() {
const id = useId();
return (
<div className="*:not-first:mt-2">
<Label htmlFor={id}>Select with icon</Label>
<Select defaultValue="1">
<SelectTrigger className="relative ps-9" id={id}>
<div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 group-has-[select[disabled]]:opacity-50">
<ClockIcon aria-hidden="true" size={16} />
</div>
<SelectValue placeholder="Select time" />
</SelectTrigger>
<SelectContent>
<SelectItem value="1">00:00 AM - 11:59 PM</SelectItem>
<SelectItem value="2">01:00 AM - 12:59 PM</SelectItem>
<SelectItem value="3">02:00 AM - 01:59 PM</SelectItem>
<SelectItem value="4">03:00 AM - 02:59 PM</SelectItem>
</SelectContent>
</Select>
</div>
);
}