Skip to content

TRibbon / 缎带

Ribbon adds a decorative colored ribbon to cards or containers. Supports position (side/top), bookmark style, and color variants. / 缎带为卡片或容器添加装饰性彩色角标,支持位置、书签样式和颜色变体。

Props / 属性

PropType / 类型Default / 默认值Description / 说明
position'start' | 'top''start'Ribbon position
colorTablerColorBackground color
bookmarkbooleanfalseBookmark style (angled cut)

Basic Usage / 基础用法

vue
<script setup lang="ts">
import { TRibbon } from '@gulcc/tabler-vue'
</script>

<template>
  <TRibbon color="red" position="start">NEW / 新</TRibbon>
  <TRibbon color="blue" bookmark>Featured / 精选</TRibbon>
</template>