Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
__tests__
src
stories
CHANGELOG.md
README.md
package.json
rollup.config.js
tsconfig.build.json
tsconfig.json

README.md

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
You can’t perform that action at this time.