@twilio-paste/anchor
TypeScript icon, indicating that this package has built-in type declarations

12.1.0 • Public • Published

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

/@twilio-paste/anchor/

    Package Sidebar

    Install

    npm i @twilio-paste/anchor

    Weekly Downloads

    10,984

    Version

    12.1.0

    License

    MIT

    Unpacked Size

    116 kB

    Total Files

    17

    Last publish

    Collaborators

    • thesisb
    • sitaggart
    • dkundel
    • pastebot