Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Components

Alert

Alert are to display a list of options on a temporary surface

banner-Alert
Square Icon

Selected Theme

Select brand or tribe name to preview style

Others
Component Status Details

Status component contains a list of checks and completeness that has been tested and owned by each component

check-list-icon We don't use color as the only visual tool to convey information.
check-list-icon The component’s structure and properties include relevant options such as variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.check-list-icon The title is the component name that uses the frame base component template.check-list-icon The base component name contains: .Base & "Component Name" if there is more than one.check-list-icon All component properties use the Legion foundation.
check-list-icon We can change all the parts that are connected to the component base.check-list-icon The inside of the base component remains connected to the master component.check-list-icon All variant options are not damaged when we change from one to another.check-list-icon Overriding changes to components will not reset other variants.
check-list-icon Component's already has component specs documentation.

Status

Resources

Upcoming

Usage

Alert use to display a list of options on a temporary surface.

Use Legion alert styles to modify alert with lots of attributes that make you easier.

Usage Default LegionUI

Alert(
title: "sample Title",
subtitle: "sample Subtitle",
action: "sample CTA copy"
)

Variant

Legion Have 4 Variants of Alert :

Error
Default Legion UI
      
Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" )
.theme(variant: .error)
Information
Default Legion UI
      
Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" )
.theme(variant: .information)
Success
Default Legion UI
      
Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" )
.theme(variant: .success)
Warning
Default Legion UI
      
Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" )
.theme(variant: .warning)

Properties

PropertiesDescriptionDefault Value
titleCreates a title view that displays a string literalempty string
subtitleCreates a subtitle view that displays a string literalempty string
actionCreates a button that displays text contains a string literalempty string
titleViewCreate a title view fully-customized by SwiftUI viewsEmptyView()
subtitleViewCreate a sutitle view fully-customized by SwiftUI viewsEmptyView()
actionViewCreate a cta button view fully-customized by SwiftUI viewsEmptyView()

Example Project

Default LegionUI

Alert {
Text("Info Custom")
.LGNBodyLarge(
color: Color.LGNTheme.tertiary800
)
.padding(.bottom, 6)
} subtitle: {
Text("Interactively monetize corporate alignment")
.LGNCaptionLarge(