SectionMessage
Inline, non-modal message. Live-region roles are explicitly chosen by the caller. Collapsing hides content/actions from both display and keyboard navigation. Closing requests dismissal without removing the component or stealing focus.
Использование
Перед добавлением устройства
Проверьте подключение устройства.
Статусы
Состояния
Title
Содержимое сообщения
API
| Проп | Тип | По умолчанию | Описание |
|---|---|---|---|
status | "info" | "success" | "warning" | "error" | error | — |
title | ReactNode | — | — |
actions | ReactNode | — | Actions wrap automatically with the shared related gap. |
closable | boolean | | — |
onClose | () => void | — | Requests dismissal; the owner controls removal and subsequent focus. |
closeLabel | string | Закрыть сообщение | — |
expandable | boolean | | — |
expanded | boolean | — | — |
defaultExpanded | boolean | | — |
onExpandedChange | (expanded: boolean) => void | — | — |
collapsedText | string | Раскройте чтобы узнать больше | Visible only when collapsed without a title. |
expandLabel | string | Развернуть сообщение | — |
collapseLabel | string | Свернуть сообщение | — |
Last updated on