Components
Alert
Alert are to display a list of options on a temporary surface
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
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

Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" ).theme(variant: .error)
Information

Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" ).theme(variant: .information)
Success

Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" ).theme(variant: .success)
Warning

Alert( title: "Info Title", subtitle: "Interactively monetize corporate alignment", action: "Call to action" ).theme(variant: .warning)
Properties
Properties | Description | Default Value |
---|---|---|
title | Creates a title view that displays a string literal | empty string |
subtitle | Creates a subtitle view that displays a string literal | empty string |
action | Creates a button that displays text contains a string literal | empty string |
titleView | Create a title view fully-customized by SwiftUI views | EmptyView() |
subtitleView | Create a sutitle view fully-customized by SwiftUI views | EmptyView() |
actionView | Create a cta button view fully-customized by SwiftUI views | EmptyView() |
Example Project
Default LegionUI
Alert {Text("Info Custom").LGNBodyLarge(color: Color.LGNTheme.tertiary800).padding(.bottom, 6)} subtitle: {Text("Interactively monetize corporate alignment").LGNCaptionLarge(