Keep track of ICE and police locations in your city. Very much a work-in-progress and not ready yet, stay tuned I guess?
at main 29 lines 1.5 kB view raw
1<script lang="ts"> 2 import { Select as SelectPrimitive } from "bits-ui"; 3 import ChevronDownIcon from "@lucide/svelte/icons/chevron-down"; 4 import { cn, type WithoutChild } from "$lib/utils/cn.js"; 5 6 let { 7 ref = $bindable(null), 8 class: className, 9 children, 10 size = "default", 11 ...restProps 12 }: WithoutChild<SelectPrimitive.TriggerProps> & { 13 size?: "sm" | "default"; 14 } = $props(); 15</script> 16 17<SelectPrimitive.Trigger 18 bind:ref 19 data-slot="select-trigger" 20 data-size={size} 21 class={cn( 22 "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit select-none items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", 23 className 24 )} 25 {...restProps} 26> 27 {@render children?.()} 28 <ChevronDownIcon class="size-4 opacity-50" /> 29</SelectPrimitive.Trigger>