native-select-rtl.tsx — ui Source File
Architecture documentation for native-select-rtl.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 556e97f7_5a8c_0761_a06c_578081c8ac35["native-select-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 556e97f7_5a8c_0761_a06c_578081c8ac35 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 b5cac5a3_512f_e039_ac74_df6626ee7fed["native-select"] 556e97f7_5a8c_0761_a06c_578081c8ac35 --> b5cac5a3_512f_e039_ac74_df6626ee7fed 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 556e97f7_5a8c_0761_a06c_578081c8ac35 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 556e97f7_5a8c_0761_a06c_578081c8ac35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
NativeSelect,
NativeSelectOption,
} from "@/examples/base/ui-rtl/native-select"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
placeholder: "Select status",
todo: "Todo",
inProgress: "In Progress",
done: "Done",
cancelled: "Cancelled",
},
},
ar: {
dir: "rtl",
values: {
placeholder: "اختر الحالة",
todo: "مهام",
inProgress: "قيد التنفيذ",
done: "منجز",
cancelled: "ملغي",
},
},
he: {
dir: "rtl",
values: {
placeholder: "בחר סטטוס",
todo: "לעשות",
inProgress: "בתהליך",
done: "הושלם",
cancelled: "בוטל",
},
},
}
export function NativeSelectRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<NativeSelect dir={dir}>
<NativeSelectOption value="">{t.placeholder}</NativeSelectOption>
<NativeSelectOption value="todo">{t.todo}</NativeSelectOption>
<NativeSelectOption value="in-progress">
{t.inProgress}
</NativeSelectOption>
<NativeSelectOption value="done">{t.done}</NativeSelectOption>
<NativeSelectOption value="cancelled">{t.cancelled}</NativeSelectOption>
</NativeSelect>
)
}
Domain
Subdomains
Functions
Dependencies
- language-selector
- native-select
- react
Source
Frequently Asked Questions
What does native-select-rtl.tsx do?
native-select-rtl.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in native-select-rtl.tsx?
native-select-rtl.tsx defines 1 function(s): NativeSelectRtl.
What does native-select-rtl.tsx depend on?
native-select-rtl.tsx imports 3 module(s): language-selector, native-select, react.
Where is native-select-rtl.tsx in the architecture?
native-select-rtl.tsx is located at apps/v4/examples/base/native-select-rtl.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free