BetaPublic beta — Read the release notes
Documentation

Link

Styled anchor with router integration and safety validation.

Package
@solidiom/link
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

Rootcomponent

                        Root(props: RootProps): Element
                      

Props

class?
string
disabled?
boolean — Disables the link (renders as span).
external?
boolean — Opens in a new tab with noopener noreferrer.
href
string — URL href value. Sanitized before rendering.
onClick?
EventHandlerUnion<HTMLAnchorElement, MouseEvent, EventHandler<HTMLAnchorElement, MouseEvent>> — Click handler.
style?
string | CSSProperties

children: Element

View source

RootPropsinterface

Props

class?
string
disabled?
boolean — Disables the link (renders as span).
external?
boolean — Opens in a new tab with noopener noreferrer.
href
string — URL href value. Sanitized before rendering.
onClick?
EventHandlerUnion<HTMLAnchorElement, MouseEvent, EventHandler<HTMLAnchorElement, MouseEvent>> — Click handler.
style?
string | CSSProperties

children: Element

View source