card-rtl.tsx — ui Source File
Architecture documentation for card-rtl.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb["card-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1 3f7abb04_1707_b324_1349_fc528ddbfb88["card"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 3f7abb04_1707_b324_1349_fc528ddbfb88 480dda64_480e_8d00_f8b9_f67f82fb7c4b["input"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 480dda64_480e_8d00_f8b9_f67f82fb7c4b 7ef314f6_7093_dcb4_c528_ee12b9a57e00["label"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 7ef314f6_7093_dcb4_c528_ee12b9a57e00 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 5ebb2dc2_5d2d_33ea_48d5_dba7682310cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/base/ui-rtl/button"
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/examples/base/ui-rtl/card"
import { Input } from "@/examples/base/ui-rtl/input"
import { Label } from "@/examples/base/ui-rtl/label"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
title: "Login to your account",
description: "Enter your email below to login to your account",
signUp: "Sign Up",
email: "Email",
emailPlaceholder: "m@example.com",
password: "Password",
forgotPassword: "Forgot your password?",
login: "Login",
loginWithGoogle: "Login with Google",
},
},
ar: {
dir: "rtl",
values: {
title: "تسجيل الدخول إلى حسابك",
description: "أدخل بريدك الإلكتروني أدناه لتسجيل الدخول إلى حسابك",
signUp: "إنشاء حساب",
email: "البريد الإلكتروني",
emailPlaceholder: "m@example.com",
password: "كلمة المرور",
forgotPassword: "نسيت كلمة المرور؟",
login: "تسجيل الدخول",
loginWithGoogle: "تسجيل الدخول باستخدام Google",
},
},
he: {
dir: "rtl",
values: {
title: "התחבר לחשבון שלך",
description: "הזן את האימייל שלך למטה כדי להתחבר לחשבון שלך",
signUp: "הירשם",
email: "אימייל",
emailPlaceholder: "m@example.com",
password: "סיסמה",
forgotPassword: "שכחת את הסיסמה?",
login: "התחבר",
loginWithGoogle: "התחבר עם Google",
},
},
}
export function CardRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<Card className="w-full max-w-sm" dir={dir}>
<CardHeader>
<CardTitle>{t.title}</CardTitle>
<CardDescription>{t.description}</CardDescription>
<CardAction>
<Button variant="link">{t.signUp}</Button>
</CardAction>
</CardHeader>
<CardContent>
<form>
<div className="flex flex-col gap-6">
<div className="grid gap-2">
<Label htmlFor="email-rtl">{t.email}</Label>
<Input
id="email-rtl"
type="email"
placeholder={t.emailPlaceholder}
required
/>
</div>
<div className="grid gap-2">
<div className="flex items-center">
<Label htmlFor="password-rtl">{t.password}</Label>
<a
href="#"
className="ms-auto inline-block text-sm underline-offset-4 hover:underline"
>
{t.forgotPassword}
</a>
</div>
<Input id="password-rtl" type="password" required />
</div>
</div>
</form>
</CardContent>
<CardFooter className="flex-col gap-2">
<Button type="submit" className="w-full">
{t.login}
</Button>
<Button variant="outline" className="w-full">
{t.loginWithGoogle}
</Button>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- input
- label
- language-selector
- react
Source
Frequently Asked Questions
What does card-rtl.tsx do?
card-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 card-rtl.tsx?
card-rtl.tsx defines 1 function(s): CardRtl.
What does card-rtl.tsx depend on?
card-rtl.tsx imports 6 module(s): button, card, input, label, language-selector, react.
Where is card-rtl.tsx in the architecture?
card-rtl.tsx is located at apps/v4/examples/base/card-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