mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
27 lines
676 B
TypeScript
27 lines
676 B
TypeScript
import * as React from "react"
|
|
|
|
import { Calendar } from "@/registry/bases/base/ui/calendar"
|
|
import {
|
|
SidebarGroup,
|
|
SidebarGroupContent,
|
|
} from "@/registry/bases/base/ui/sidebar"
|
|
|
|
export function DatePicker() {
|
|
const [date, setDate] = React.useState<Date | undefined>(
|
|
new Date(new Date().getFullYear(), new Date().getMonth(), 12)
|
|
)
|
|
return (
|
|
<SidebarGroup className="px-0">
|
|
<SidebarGroupContent>
|
|
<Calendar
|
|
mode="single"
|
|
selected={date}
|
|
onSelect={setDate}
|
|
captionLayout="dropdown"
|
|
className="bg-transparent [--cell-size:2.1rem]"
|
|
/>
|
|
</SidebarGroupContent>
|
|
</SidebarGroup>
|
|
)
|
|
}
|