Hoppa till huvudinnehåll

InfoBanner

Informationsmeddelande

Komponent för att visa viktiga och aktuella meddelanden om händelser eller förändringar, som till exempel systemnotiser.

Formuläret har skickats
Allt gick bra. Du kan nu stänga fönstret.

Installation

npm install @midas-ds/components
import { InfoBanner } from '@midas-ds/components'

Varianter

Success

Info

Important

Warning

Dismissable

Det går att göra det möjligt för användaren att stänga informationsmeddelandet via dismissable. Det bör inte användas för varningar.

API

NamnTypStandardBeskrivning
type *"success" | "info" | "important" | "warning"-Specify what state the InfoBanner represents
title string-Specify the title
message ReactNode-Specify the message. Element or string
children ReactNode-Additional elements displayed inside the banner
dismissable booleanfalseSpecify if the InfoBanner should have a dismiss button in the top right corner