@acodez/typography 中文文档教程

发布于 3年前 浏览 12 更新于 3年前

@acodez/typography

npm_version license

React 排版组件。



Installation

npm install @acodez/typography

Props API

PropertyTypeRequiredDescription
typestringnodeclare the type of the text element, choose from h1, h2, h3,h4, h5, h6, p, etc
sizestringnofont size, choose from sm, md, lg
colorstringnocolor scheme, choose from primary, secondary, warning, success, danger, info, dark, light
decorationstringnotext decoration, choose from strike, underline, overline

Usage

import Text from "@acodez/typography";

示例

<Text type="h1">Heading 1 text</Text>

示例 - 更多选项

<Text type="p" decoration="strike" color="warning">This is a paragraph text with a color scheme of warning, and as you can see, texts are striked.</Text>

@acodez/typography

npm_version license

React typography component.



Installation

npm install @acodez/typography

Props API

PropertyTypeRequiredDescription
typestringnodeclare the type of the text element, choose from h1, h2, h3,h4, h5, h6, p, etc
sizestringnofont size, choose from sm, md, lg
colorstringnocolor scheme, choose from primary, secondary, warning, success, danger, info, dark, light
decorationstringnotext decoration, choose from strike, underline, overline

Usage

import Text from "@acodez/typography";

Example

<Text type="h1">Heading 1 text</Text>

Example - more options

<Text type="p" decoration="strike" color="warning">This is a paragraph text with a color scheme of warning, and as you can see, texts are striked.</Text>
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文