1.13.96 • Published 3 years ago
@myntra/uikit-component-text v1.13.96
import Text from './src/text'
Text
<Text>Hello World</Text>
Available Text Fields
<Text.H1> | <Text.h1>
<Text.H2> | <Text.h2>
<Text.H3> | <Text.h3>
<Text.H4> | <Text.h4>
<Text.P> | <Text.p>
<Text.Body> | <Text.body>
<Text.Caption> | <Text.caption>
<Text.Title> | <Text.title>
- Component alias
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>
</>