@nimbus-ds/text
TypeScript icon, indicating that this package has built-in type declarations

6.3.0 • Public • Published

@nimbus-ds/text

@nimbus-ds/text

Text is the text component, used to write and format blocks of content within pages or components.

Implementation

Install the component via terminal.

$ yarn add @nimbus-ds/text
# or
$ npm install @nimbus-ds/text

Component Anatomy

The Text component is composed of a stylized (p) or (span) that consumes our typography tokens for the body, namely the base, the caption and the small.

Guidelines

Alignments

Component content can be left, center and right aligned. The criteria for using each one may vary on a case-by-case basis, the most common being the left for running text, the center for unique or punctual information and the right for texts within lists of information.

Formatting

The component allows you to format snippets of content, being able to customize the weight and color using the span property.

Usage recommendations

We use Text to write plain text with a basic hierarchy, in addition to formatting specific pieces of content.

Related components

Title Component - Used to title and subtitle screens, pages, text blocks, sections or other components, employing visual and semantic hierarchy.

Usage

View docs here.

Nimbus

Readme

Keywords

none

Package Sidebar

Install

npm i @nimbus-ds/text

Weekly Downloads

1

Version

6.3.0

License

MIT

Unpacked Size

43.8 kB

Total Files

5

Last publish

Collaborators

  • nimbus-design-system
  • tiendanube