Arabic Text.jsx
Arabic Text.jsx
Search

Arabic Text.jsx May 2026

const weightMap = normal: '400', medium: '500', bold: '700' ;

/* For small UI elements */ .arabic-text.ui-text font-size: 0.875rem; line-height: 1.4; Arabic Text.jsx

function ArabicInput() return ( <label> <ArabicText>الاسم الكامل:</ArabicText> <input type="text" dir="rtl" lang="ar" placeholder="أدخل اسمك" /> </label> ); const weightMap = normal: '400', medium: '500', bold:

// components/ArabicText.jsx import React from 'react'; const ArabicText = ( children, className, ...props ) => return ( <span dir="rtl" lang="ar" className= arabic-text $ '' ...props > children </span> ); ; const weightMap = normal: '400'

return ( <span dir="rtl" lang="ar" style= opacity: fontLoaded ? 1 : 0.99 ...props > children </span> ); ; Basic Usage import ArabicText from './components/ArabicText'; function App() return ( <div> <ArabicText>مرحبا بالعالم</ArabicText> <ArabicText size="large" weight="bold"> عنوان رئيسي </ArabicText> </div> );