JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q40105F
  • License MIT

Package Exports

  • @gdo-bzh/text

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gdo-bzh/text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

version

text

NPM JavaScript Style Guide

Text is the component used to render text and paragraphs. It renders a paragraph by default.

Install

yarn add @gdo-bzh/text react styled-components @xstyled/styled-components @gdo-bzh/box @gdo-bzh/theme @gdo-bzh/system

Usage

import React from 'react'

const Example = () => <Text size="md">medium</Text>

Types

type BoxProps = React.ComponentProps<typeof Box>

type IntrinsicHTMLSpanProps = React.DetailedHTMLProps<
  React.HTMLAttributes<HTMLElement>,
  HTMLElement
>

type Props = IntrinsicHTMLSpanProps &
  BoxProps & {
    children: React.ReactText
    /**
     * @default medium
     */
    size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl'
    /**
     * @default false
     */
    truncated?: boolean
  }

License

MIT © gdo-bzh