1.13.96 • Published 2 years ago

@myntra/uikit-component-text v1.13.96

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

import Text from './src/text'

Text

<Text>Hello World</Text>

Available Text Fields

Heading 1

<>
  <Text.H1>Heading 1</Text.H1>
</>

Heading 2

<>
  <Text.H2>Heading 1</Text.H2>
</>

Heading 3

<>
  <Text.H3>Heading 1</Text.H3>
</>

Heading 4

<>
  <Text.H4>Heading 1</Text.H4>
</>

Paragraph

<>
  <Text.P>Paragraph</Text.P>
</>

Div block

<>
  <Text.Body>Your content goes here</Text.Body>
</>

Small text

<>
  <Text.Caption>Your Caption goes here</Text.Caption>
</>

Page title

<>
  <Text.Title>Page Title</Text.Title>
</>

Component alias

The Text component would be very often so we have an alias for it.

<>
  <T.H1>Heading 1</T.H1>
  <Text.H1>Heading 1</Text.H1>
</>