ACTIONS / COMPONENT 06

Link

React component

Navigate to another destination with familiar anchor behavior.

Try it out

Use the live controls or open the Code tab to view and copy the example.

API reference

Generated from the package’s TypeScript exports. Standard React event and ARIA attributes are also accepted where the component wraps a native element.

PropTypeDescription
tone"neutral" | "critical" | undefinedDefault: "neutral"Semantic status treatment; always pair color with text.
variant"button" | "text" | undefinedDefault: "text"Visual emphasis appropriate to the action hierarchy.
downloadanyStandard React / HTML attribute passed to the underlying element.
hrefstring | undefinedStandard React / HTML attribute passed to the underlying element.
targetHTMLAttributeAnchorTarget | undefinedStandard React / HTML attribute passed to the underlying element.
typestring | undefinedStandard React / HTML attribute passed to the underlying element.
defaultCheckedboolean | undefinedStandard React / HTML attribute passed to the underlying element.
defaultValuestring | number | readonly string[] | undefinedInitial value for uncontrolled usage.
classNamestring | undefinedAdditional CSS class names.
idstring | undefinedStandard React / HTML attribute passed to the underlying element.
styleCSSProperties | undefinedInline styles, including CSS custom property overrides.
relstring | undefinedStandard React / HTML attribute passed to the underlying element.
childrenReactNodeContent rendered inside the component.
onFocusFocusEventHandler<HTMLAnchorElement> | undefinedStandard React / HTML attribute passed to the underlying element.
onBlurFocusEventHandler<HTMLAnchorElement> | undefinedStandard React / HTML attribute passed to the underlying element.
onChangeChangeEventHandler<HTMLAnchorElement, Element> | undefinedStandard React / HTML attribute passed to the underlying element.
onErrorReactEventHandler<HTMLAnchorElement> | undefinedStandard React / HTML attribute passed to the underlying element.
onClickMouseEventHandler<HTMLAnchorElement> | undefinedStandard React / HTML attribute passed to the underlying element.

Accessibility & interaction

Preserve semantic structure and communicate meaning with text rather than color alone.

Visible focus, reduced motion, and both color themes are shared across staqui. Choose labels and document structure that make sense in your application; automated checks do not replace assistive-technology testing.

Variants & implementation notes

A native anchor supports navigation and downloads. Use Button for actions.

Use the typed API above for the supported variants. The example demonstrates the primary composition; shared controls inherit hover, focus, active and disabled treatment where applicable.

Compose with