@temir/link
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

temir-link

Link component for Temir.

Install

$ npm install @temir/link

usage

temir-link

<script lang="ts" setup>
import { TBox, TText } from '@temir/core'
import TLink from '@temir/link'
</script>

<template>
  <TBox
    :margin="5"
    width="20"
    border-style="round"
    justify-content="center"
  >
    <TLink url="https://github.com">
      <TText color="yellow">
        Hi
      </TText>
      <TText color="cyan">
        Github
      </TText>
    </TLink>
  </TBox>
</template>

API

<TLink>

Supported terminals.

For unsupported terminals, the link will be printed in parens after the text: Link.

url

Type: string

The URL to link to.

fallback

Type: boolean
Default: true

Determines whether the URL should be printed in parens after the text for unsupported terminals: Link.

Related

Dependents (2)

Package Sidebar

Install

npm i @temir/link

Weekly Downloads

3

Version

0.0.20

License

MIT

Unpacked Size

467 kB

Total Files

6

Last publish

Collaborators

  • webfansplz