DatePickerRtl() — ui Function Reference
Architecture documentation for the DatePickerRtl() function in date-picker-rtl.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 877b3112_69ff_c739_60af_a1d7458a4535["DatePickerRtl()"] db20864e_bef6_1bab_8d09_31e685ca085a["date-picker-rtl.tsx"] 877b3112_69ff_c739_60af_a1d7458a4535 -->|defined in| db20864e_bef6_1bab_8d09_31e685ca085a style 877b3112_69ff_c739_60af_a1d7458a4535 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/date-picker-rtl.tsx lines 55–97
export function DatePickerRtl() {
const { dir, t, language } = useTranslation(translations, "ar")
const [date, setDate] = React.useState<Date>()
const dateFnsLocale =
dir === "rtl"
? dateFnsLocales[language as keyof typeof dateFnsLocales]
: undefined
const dayPickerLocale =
dir === "rtl"
? dayPickerLocales[language as keyof typeof dayPickerLocales]
: undefined
return (
<Popover>
<PopoverTrigger asChild>
<Button
variant="outline"
data-empty={!date}
className="data-[empty=true]:text-muted-foreground w-[212px] justify-between text-left font-normal"
dir={dir}
>
{date ? (
format(date, "PPP", { locale: dateFnsLocale })
) : (
<span>{t.placeholder}</span>
)}
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto p-0" align="start" dir={dir}>
<Calendar
mode="single"
selected={date}
onSelect={setDate}
defaultMonth={date}
dir={dir}
locale={dayPickerLocale}
/>
</PopoverContent>
</Popover>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does DatePickerRtl() do?
DatePickerRtl() is a function in the ui codebase, defined in apps/v4/examples/radix/date-picker-rtl.tsx.
Where is DatePickerRtl() defined?
DatePickerRtl() is defined in apps/v4/examples/radix/date-picker-rtl.tsx at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free