نظرة عامة
يعرضCommandBlock كل أمر مُقدَّم مع علامة موجّه. لا ينفّذ الأوامر ولا يوفّر النسخ تلقائيًا. زوّد actions بأي عقدة React، مثل زر أو رابط أو حالة. يستخدم نص الأمر دلالات pre وcode، ويحافظ على فواصل الأسطر، ويلتف ضمن العرض المتاح. علامات الموجّه زخرفية.
استخدام
div الخارجي. استخدم render لتكوين جذر آخر، على سبيل المثال render={<section aria-label="Installation commands" />}. يتم تصدير CommandBlockProps من twenty-ui/components/data-display.
عند الترحيل، استبدل button بـ actions.
الخصائص
Command lines to display. The component prefixes each line with > and does not execute commands.