انتقل إلى المحتوى
uiify

Empty

A static empty collection message with a heading, explanation, and next step.

المتصفحات
Chrome 123+Firefox 121+Safari 17.5+
الفئة
0
ميزانية التخطيط القسري
0 ms
ميزانية axe
0
متوافق مع SSR
نعم
العقد المنشور
بيئة الاختبار

المختبر

Empty

No projects yet

Create a project to organize your work and invite your team.

أمثلة

No projects

Use the static composition for an empty collection and provide a clear next step.

No projects yet

Create a project to organize your work and invite your team.

import { Button, Empty, EmptyContent, EmptyDescription, EmptyTitle } from "@gunkin/uiify";

export default function Example() {
  return (
    <Empty>
      <EmptyTitle>No projects yet</EmptyTitle>
      <EmptyDescription>Create a project to organize your work and invite your team.</EmptyDescription>
      <EmptyContent><Button as="a" href="/projects/new" variant="link">Create a project</Button></EmptyContent>
    </Empty>
  );
}

API

Empty

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Title, description, and optional next-step content.
className / style / ref / native section propsnative section props—Native section props, styles, events, and ref are forwarded.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

EmptyTitle

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Content for this semantic empty-state part.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

EmptyDescription

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Content for this semantic empty-state part.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

EmptyContent

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Content for this semantic empty-state part.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

لوحة المفاتيح

المفتاحالإجراء

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

Static section with heading, description, and optional content. It does not announce as status or alert; keep the empty state understandable in visible text and use a native link or button for its next step.

نقاط التنسيق

data-uiify-emptydata-uiify-empty-titledata-uiify-empty-descriptiondata-uiify-empty-contentdata-part
تُرجمت هذه الصفحة آليًا ولم تُراجع بعد.