Typography styles are used throughout the UI. If used consistently they will help you maintain a hierarchy that is clear to your users.
Usage
import { BlockText } from 'nr1'
Examples
Basic
<> <BlockText> Typography is at the core of <strong>great</strong> user interface design. </BlockText></>
Types
<> <BlockText type={BlockText.TYPE.NORMAL}> Typography is at the core of <strong>great</strong> user interface design. </BlockText> <BlockText type={BlockText.TYPE.PARAGRAPH}> Typography is at the core of <strong>great</strong> user interface design. </BlockText></>
Changing semantic
<BlockText type={BlockText.TYPE.PARAGRAPH} tagType={BlockText.TYPE.DIV}> This is a div element styled as a paragraph</BlockText>
Props
node | Text to display. |
string | Appends class names to the component.Should be used only for positioning and spacing purposes. |
enum[] | Spacing property. Spacing is defined as a tuple of zero to four values, which follow the same conventions as CSS properties like <Array of |
object | Inline style for custom styling.Should be used only for positioning and spacing purposes. |
enum | Tag in which to wrap the text.Useful for changing the semantic meaning of the text. This does not apply any style. <One of |
string | Adds a Note: You might not see |
enum | Type of text that you want to display.This applies styles according to the type. <One of |