@tdcerhverv/paragraph
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Paragraph component

Usage

Import like this:

import { Paragraph } from '@tdcerhverv/paragraph';

Use like this:

<Paragraph>Everything is awesome!</Paragraph>

Props

export interface IParagraph extends HTMLAttributes<HTMLParagraphElement> {
  children?: ReactNode;
  size?: 'small' | 'medium' | 'large'; // default: medium
  weight?: 'thin' | 'regular' | 'strong'; // default: regular
  align?: 'left' | 'center' | 'right' | 'justify';
  uppercase?: boolean;
  emphasis?: boolean;
  className?: string;
  lightColored?: boolean;
  dangerouslySetInnerHTML?: { __html: string; }
}

Dependencies (3)

Dev Dependencies (4)

Package Sidebar

Install

npm i @tdcerhverv/paragraph

Weekly Downloads

0

Version

2.0.0

License

Apache-2.0

Unpacked Size

29.3 kB

Total Files

10

Last publish

Collaborators

  • antongb
  • dev_jonas
  • jeppebenjaminsen
  • ahhah
  • abdok
  • mikkv
  • clausr1990
  • tdc-sigbe
  • mdige
  • nuudaybot
  • tdc-olila
  • jeroen.dk.nl
  • renand
  • stegr
  • m84100
  • m92212
  • m87979
  • vertic
  • rasladev
  • muddz
  • tajsonik
  • linnt
  • molg