Alert

Danger

Info

Success

Warning

Alert

A generic alert component with different type variation and close option.'

Variations

  • --danger: by default, it gets red accents.
  • --info: by default, it gets blue accents.
  • --success: by default, it gets green accents.
  • --warning: by default, it gets yellow accents.

Technical Details

  • You should use the ARIA alert role on your alert elements to convey more meaning.
  • If you need a closing functionality for the UI, you can use the .alert__close element, but you need to implement the closing functionality yourself.

Documentation

Learn about Spruce CSS through our extensive documentation.

Components

Explore our extensive UI library built with Spruce CSS.

Blog

Read about front-end development and concepts of Spruce CSS.

Find us on GitHub

Did you find a bug? Have an idea or a question? Please open an issue to help us develop the project.