1.0.3 • Published 1 year ago

@zeriontech/components v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@zeriontech/components

UI Components used in Zerion Web projects

Get Started

Install

npm install @zeriontech/components

Use

  1. Import styles in a way that your bundler supports

    import '@zeriontech/components/lib/index.css';
  2. Import the component directly

    import { UIText } from '@zeriontech/components';
    
    // Use
    <UIText kind="body/regular" color="black">
      Some text
    </UIText>;

Reference

UIText

A component for displaying text. Sets a predefined set of font styles.

Props
kind: Kind

Sets the font style variation. Possible options:

  • 'headline/hero'
  • 'headline/h1'
  • 'headline/h2'
  • 'headline/h3'
  • 'body/accent'
  • 'body/regular'
  • 'small/accent'
  • 'small/regular'
  • 'caption/accent'
  • 'caption/regular'

These correspond to the different typographic styles within your application. Each is associated with a different set of styling parameters - font size, line height, weight, and letter spacing.

color?: string

Defines the color of the text. The default color is 'currentColor'. Supports css custom properties.

inline?: boolean

Determines whether the text should display as inline-block or not. If set to true, the text will display as an inline element. Default value is false.

Usage
import { UIText } from '@zeriontech/components';

const ExampleComponent = () => (
  <UIText kind="headline/h1" color="black">
    This is a headline
  </UIText>
);
1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago