引用

对齐目标:@astryxdesign/core v0.7.1 · Blockquote

Design is not just what it looks like and feels like. Design is how it works.
The people who are crazy enough to think they can change the world are the ones who do. Steve Jobs

使用方法 #

Blockquote 用于展示引用的文本,例如推荐语、评论摘录或文档中引用的外部内容,在视觉上与普通段落区分开。从独立入口导入即可,结构样式会随组件自动加载:

主题在应用入口引入一次:

TypeScript
import '@astryx-vue/themes/neutral.css'

组件用法:

Vue
<script setup lang="ts">
import { Blockquote } from '@astryx-vue/core/Blockquote'
</script>

<template>
  <Blockquote cite="Steve Jobs">
    设计不仅关乎外观与感受,更关乎如何运作。
  </Blockquote>
</template>

解剖

部分说明
竖线行首一侧的边线,用 --color-border-emphasized 绘制。
引文默认插槽里的引用内容,画在 blockquote 元素里。
出处来源,通过 cite 传入,画成引文下方的 cite 元素。

最佳实践 #

指引实践
推荐用于引用文本、推荐语或来自外部来源的高亮摘录。
推荐引用来源已知时,提供 cite 属性。
避免用于提示或信息说明。应使用提示条(Banner)。

示例 #

引用 — 用户评价

Shipping UI has never been this fast. Our team went from design to production in a single afternoon. Sarah K., Lead Engineer
The token system means every new screen just looks right — no manual color or spacing decisions. Marcus T., Product Designer
Onboarding a new engineer used to take a week of design review. Now they're shipping accessible, polished components on day one. Priya L., Engineering Manager

评价区里的多条引言,排成卡片网格。和 Card、Grid 一起用来做社会证明布局。

引用 — 带来源

Design is not just what it looks like and feels like. Design is how it works.
The people who are crazy enough to think they can change the world are the ones who do. Steve Jobs

一条普通引言,和一条用来源 cite 署名的引言。已知作者或出处时使用 cite。