Back to documentation

Alert

A content container that alerts the user in a visual way using different themes.

Information

Plan: Personal

Example

Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Soft
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Outlined
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Solid
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Elevated
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Glass
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Left Accent
Success

This is an alert with a theme that indicates something was successfully done.

Warning

This is an alert with a theme that indicates a warning was produced.

Error

This is an alert with a theme that indicates an error of some kind.

Properties

PropertyTypeDefault
Theme
enum<string>
"success"
Background color - Success
string
"var(--ophixor-semantic-status-success-bg)"
Background color - Warning
string
"var(--ophixor-semantic-status-warning-bg)"
Background color - Error
string
"var(--ophixor-semantic-status-danger-bg)"
Box shadow
string
"var(--ophixor-semantic-shadow-medium)"
Opacity
string
"1"
Backdrop filter
string
"none"
Transition
string
"all 0.2s ease"
Border width
string
"1px"
Border top width
string
"var(--alert-border-width)"
Border right width
string
"var(--alert-border-width)"
Border bottom width
string
"var(--alert-border-width)"
Border left width
string
"var(--alert-border-width)"
Border radius
string
"6px"
Border color - Success
string
"var(--ophixor-semantic-status-success)"
Border color - Warning
string
"var(--ophixor-semantic-status-warning)"
Border color - Error
string
"var(--ophixor-semantic-status-danger)"
Color - Success
string
"var(--ophixor-semantic-status-success-text)"
Color - Warning
string
"var(--ophixor-semantic-status-warning-text)"
Color - Error
string
"var(--ophixor-semantic-status-danger-text)"
Flexbox direction
enum<string>
"column"
Flexbox wrap
enum<string>
"wrap"
Position
enum<string>
"relative"
Top
string
"auto"
Right
string
"auto"
Bottom
string
"auto"
Left
string
"auto"
Z-index
string
"auto"
Transform
string
"none"
Align items along the cross axis
enum<string>
"stretch"
Justify content along the main axis
enum<string>
"stretch"
Padding
string
"1rem 1.25rem"
Gap
string
"1rem"
Margin
string
"0px"
Width
string
"auto"
Minimum width
string
"0px"
Maximum width
string
"100%"
Height
string
"auto"
Minimum height
string
"0px"
Maximum height
string
"none"
Flexbox grow
string
"0"
Flexbox shrink
string
"1"
Overflow
enum<string>
"visible"
Is visible
boolean
true
Selectors
array
[]

Variants

VariantDescription
SoftComing soon...
OutlinedComing soon...
SolidComing soon...
ElevatedComing soon...
GlassComing soon...
Left AccentComing soon...
Compact RowComing soon...
BannerComing soon...
ToastComing soon...
Floating CenterComing soon...