اقتباس

Quote

اقتباس بارز في React: عنوان اختياري، مؤلف، صفة المؤلف، صورة رمزية، أحجام، وتلوينات. يعرض عنصر blockquote الدلالي.

يستقبل Quote نص الاقتباس عبر children، مع خيارات quoteTitle، author، authorTitle، وavatar. يعرض المكون عنصر blockquote الدلالي.

متى تستخدمه

استخدم Quote للشهادات، تصريح قيادي في صفحة خدمة، أو مقتطف بارز من سياسة. أبق الاقتباسات قصيرة وانسبها إلى قائلها.

لإبراز تنبيه غير مقتبس، استخدم InlineAlert.

أمثلة

العنوان، الاقتباس، والمؤلف

مع صورة رمزية

Body only, small & untinted

النظام المصمم جيداً هو ما لا تضطر أبداً للتفكير فيه.

العربية (RTL)

الخصائص

الخصائص التي يعرفها Quote. سمات العنصر الأصلي تمر كما هي.

الخاصيةالنوعالافتراضيالوصف
size"sm" | "lg"
whiteBackgroundboolean
childrenreact.ReactNodeThe quote text - the cited sentence. Rendered inside the <blockquote>.
quoteTitlereact.ReactNodeOptional bold lead-in above the quote (SDGA "Title of quote" - Display xs).
authorreact.ReactNodeAttribution name (SDGA "Author's name" - Text xl, medium).
authorTitlereact.ReactNodeSecondary attribution line - role / brief (SDGA author title - Text lg).
avatarreact.ReactNodeAvatar media (e.g. an <Avatar />), shown 80px at the inline-start of the author row. Decorative (aria-hidden); only rendered alongside textual attribution.
citestringSource URL - set as the machine-readable cite= attribute on the <blockquote>.

إمكانية الوصول

يعرض Quote عنصر <blockquote> الأصلي، لذلك يعلنه قارئ الشاشة اقتباساً. يظهر المؤلف وصفته نصاً، والصورة الرمزية زخرفية.

تحمل علامات الاقتباس الزخرفية aria-hidden.