Link

ID: mantra_starter:link

A plain text link. The state prop pins the link to one of its interactive states with a data-state attribute, so the library can show them all at once.

Name Label Type Description
content Content Slot Link text/content.
text Text String Link text.
url Url String Link url.
classes Classes List Extra classes.
Default: []
state State Enum Hover/focus/active/visited state, used in component library.
Default: "default"
Allowed values: default, hover, focus, focus-visible, active, visited

Default

default Dotted underline, green.
hover Solid underline, green.
focus Solid underline, black. Shown after clicking link.
focus-visible Solid green outline. Keyboard focus highlight.
active Larger underline, green. Blinks larger when clicked and changes color when hovered.
visited Dotted underline, dark green.

Formatted

Dotted underline, green.
Solid underline, green.
Solid underline, black. Shown after clicking link.
Solid green outline. Keyboard focus highlight.
Larger underline, green. Blinks larger when clicked and changes color when hovered.
Dotted underline, dark green.

Sentence

This is a default link within a line of text.

This is a hovered link within a line of text.

This is a focused link within a line of text.

This is visibly focused link within a line of text.

This is an active link within a line of text.

This is a visited link within a line of text.