<sessions-link>
An inline text link.
Preact & React
<Link>GroupTypographyDrawn asTextLinkPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
A link inside a sentence. Absolute URLs open in a new tab; a Sessions path navigates in place.
In Preact and React, import the component of the same name from @sessions/apps/preact or @sessions/apps/react. Attributes become camelCase props, a boolean attribute is a boolean prop, and an event is an on prop that receives the event’s detail.
Attributes
Attribute
torequiredThe destination: an
https:, http:, mailto: or tel: URL, or a Sessions path. Any other scheme renders a link to nowhere.Prop toExample
import {Text, Link} from '@sessions/apps/preact';
<Text>
See the <Link to="https://example.com/rules">house rules</Link>.
</Text>