TrademarkTrademark
Docs
Ctrl k
Search docs...
Components

Feedback

Updated: October 18, 2026
View on GitHub
Soon
Not released yet. This is on main and is not in any published version yet. It will not install today.

Feedback shows a message inside the layout: an error under a form, a warning above a list, a note after a save. It fills the width and takes the color of its variant. Screen readers announce it as an alert when it appears. See the web Feedback page for the web version.

Icon

icon takes any element and places it before the text. Pass an Icon to match the web.

Close button

showCloseButton adds a "Hide" button next to the title, which calls onClose. It needs a title to show. Remove the feedback from the screen in onClose.

Custom content

Children render under the title and description.

Differences from the web

  • icon takes an element, not an icon name, and there is no default icon per variant.
  • Every variant is announced as an assertive alert. On the web, only danger and warning are; info and success are a polite status.
  • Feedback does not take Flex props. Use style for margins.

API reference

Prop
Type
Default
Description
variant"info" | "danger" | "warning" | "success""info"The color and meaning.
titlestringA short heading.
descriptionstringThe message under the title.
iconReactNodeAn element before the text.
showCloseButtonbooleanfalseShows a "Hide" button next to the title.
onClose() => voidCalled when the close button is pressed.
childrenReactNodeContent under the text.
styleViewStyleStyle for the outer view.
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club