Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Components

Anchor Text

Actionable text link for users to navigate

banner-Anchor Text
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

Usage

Anchor text is text that can be clicked and hyperlinked with other sites or pages. The use of anchor text is very important in the world of content marketing because it can increase index and ranking on search engines.

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

ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy

LGNAnchorText();

Variant

LGNAnchorText with the following appearances:

Label
Icon
Icon Left + Label
Label + Icon Right
Icon Left + Label + Icon Right

Use this Function : LGNAnchorText

This code sample demonstrates how to modify the variant of Anchor text :

A. Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label"
)

B. Icon

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
centerImage: Image(systemName: "plus")
)

C. Icon Left + Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus")
)

D. Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
rightImage: Image(systemName: "plus")
)

E. Icon Left + Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus"),
rightImage: Image(systemName: "chevron.down")
)

Attribute

Legion Have 1 Attribute for Customize Anchor text :

Size

This size attribute for user to costumize size on the Anchor text

Small

Label
Icon
Icon Left + Label
Label + Icon Right
Icon Left + Label + Icon Right

Use this Function : LGNAnchorText

This code sample demonstrates how to modify the size of Achor text :

A. Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label"
)
.variant(size: .small)

B. Icon

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
centerImage: Image(systemName: "plus")
)
.variant(size: .small)

C. Icon Left + Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus")
)
.variant(size: .small)

D. Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
rightImage: Image(systemName: "plus")
)
.variant(size: .small)

E. Icon Left + Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus"),
rightImage: Image(systemName: "chevron.down")
)
.variant(size: .small)

Normal

Label
Icon
Icon Left + Label
Label + Icon Right
Icon Left + Label + Icon Right

Use this Function : LGNAnchorText

This code sample demonstrates how to modify the size of Achor text :

A. Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label"
)
.variant(size: .normal)

B. Icon

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
centerImage: Image(systemName: "plus")
)
.variant(size: .normal)

C. Icon Left + Label

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus")
)
.variant(size: .normal)

D. Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
rightImage: Image(systemName: "plus")
)
.variant(size: .normal)

E. Icon Left + Label + Icon Right

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus"),
rightImage: Image(systemName: "chevron.down")
)
.variant(size: .normal)

Properties

With Title

PropertiesDescriptionDefault Value
titlethe main text string you want to display on anchor textnot have
fontFamilyfontFamily of your title""
leftImagethe Image() you want to display on the left side of your title textnil
rightImagethe Image() you want to display on the right side of your title textnil
tintColorcolor tint for your anchor text: title, left image, and right imageColor.LGNTheme.primary500
actionThe action to perform when the user pressed the anchor text.{}

With centerImage (Without Title)

PropertiesDescriptionDefault Value
centerImagethe only Image() you want to display on the center side of the anchor textnot have
tintColorcolor tint for your center imageColor.LGNTheme.primary500
actionThe action to perform when the user pressed the anchor text.{}

Example Project

Theme (ThemeLGN, ThemeAGR, ThemeMyTEnS, ThemeIHS & ThemeEazy)

LGNAnchorText(
centerImage: Image(systemName: "plus")
) {
print("Hello")
}
LGNAnchorText(
title: "Label",
leftImage: Image(systemName: "plus"),