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 takes any element and places it before the text. Pass an Icon to match the web.
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.
Children render under the title and description.
- 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.