Add size prop to DatePicker and fix range end

This commit is contained in:
Gregor Vostrak
2026-03-23 02:21:28 +01:00
parent 12bbbf64e9
commit b94872b07b
5 changed files with 10 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ import type { Organization } from '@/packages/api/src';
const props = defineProps<{
tabindex?: string;
class?: string;
size?: 'sm' | 'default';
}>();
// This has to be a localized timestamp, not UTC
@@ -67,7 +68,7 @@ function handleDateSelect(newDate: DateValue | undefined) {
<PopoverTrigger as-child>
<Button
variant="input"
size="sm"
:size="props.size ?? 'default'"
:tabindex="tabindex"
:class="['w-full px-2 gap-1.5', props.class]">
<CalendarIcon class="!size-3 text-muted-foreground" />