Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Latest commit

 

History

History

temir-spinner

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

temir-spinner

Spinner component for Temir. Uses cli-spinners for the collection of spinners.

Install

$ npm install @temir/spinner

usage

temir-spinner

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

<template>
  <TBox
    :margin="5"
    width="20"
    border-style="round"
    justify-content="center"
  >
    <TText>
      <TText color="yellow">
        <TSpinner />
      </TText>
      Loading
    </TText>
  </TBox>
</template>

Props

type

Type: string
Defaults: dots

Type of a spinner. See cli-spinners for available spinners.

Related