К содержимому
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
Эта страница переведена автоматически и ещё не проверена.