Skip to content

Commit

Permalink
styles: calendar previews
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 5, 2023
1 parent 04afd24 commit 305cc67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/demos/calendar-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
let:weekdays
{isDateUnavailable}
weekdayFormat="short"
fixedWeeks={true}
>
<Calendar.Header class="flex items-center justify-between">
<Calendar.PrevButton
Expand Down
2 changes: 1 addition & 1 deletion src/components/demos/date-picker-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { CaretLeft, CaretRight, CalendarBlank } from "phosphor-svelte";
</script>

<DatePicker.Root weekdayFormat="short">
<DatePicker.Root weekdayFormat="short" fixedWeeks={true}>
<div class="flex min-w-[200px] flex-col gap-1">
<DatePicker.Label class="block select-none font-medium"
>Birthday</DatePicker.Label
Expand Down
2 changes: 1 addition & 1 deletion src/components/demos/date-range-picker-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let value: DateRange | undefined = undefined;
</script>

<DateRangePicker.Root bind:value weekdayFormat="short">
<DateRangePicker.Root bind:value weekdayFormat="short" fixedWeeks={true}>
<div class="flex min-w-[200px] flex-col gap-1">
<DateRangePicker.Label class="block select-none font-medium"
>Rental Days</DateRangePicker.Label
Expand Down
1 change: 1 addition & 0 deletions src/components/demos/range-calendar-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
let:months
let:weekdays
weekdayFormat="short"
fixedWeeks={true}
>
<RangeCalendar.Header class="flex items-center justify-between">
<RangeCalendar.PrevButton
Expand Down

0 comments on commit 305cc67

Please sign in to comment.