@twilio-paste/anchor

An Anchor is text that navigates the user from one webpage to another.

Usage no npm install needed!

<script type="module">
  import twilioPasteAnchor from 'https://cdn.skypack.dev/@twilio-paste/anchor';
</script>

README

Anchor

Installation

yarn add @twilio-paste/anchor

Usage

import {Anchor} from '@twilio-paste/anchor';

<Anchor href="/app">
  Link Text
</Anchor>

Props

Prop Type Description Default
href? string A URL to route to. Required. null
tabindex? AnchorTabIndexes '0', '-1' null
target? AnchorTargets '_self', '_blank', '_parent', '_top'. If external href, defaults to '_blank'. Can be overwritten. null
rel? string Sets the anchor rel attribute. If external href, defaults to 'noreferrer noopener'. Can be overwritten. false
onClick? (event: React.MouseEvent) null
onFocus? (event: React.FocusEvent) null
onBlur? (event: React.FocusEvent) null