Typography
Beautiful typography components to display textual content.
Examples
Title level 1Subtitle level 1
Title level 2Subtitle level 2
Title level 3Subtitle level 3
Title level 4Subtitle level 4
Title level 5Subtitle level 5
Title level 6Subtitle level 6
Sloths are arboreal mammals noted for slowness of movement and for spending most of their lives hanging upside down in the trees of the tropical rainforests of South America and Central America. The six species are in two families: two-toed sloths and three-toed sloths. In spite of this traditional naming, all sloths actually have three toes. The two-toed sloths have two digits, or fingers, on each forelimb. You can learn more about sloths by visiting https://en.wikipedia.org/wiki/Sloth. One fun fact is that a sloth is not at all capable of using a key on a human keyboard, such as Ctrl, or writing any code, such as console.log('Hello world!)'
!
Creativity Is Intelligence Having Fun.
console.log('Hello world');
import React from 'react';
import ReactDOM from 'react-dom';
import { Title, Text, Paragraph, Quote, Code, Kbd, Preformatted } from 'furl-components';
ReactDOM.render(
<div>
<Title level={2}>
Sloths, code and Einstein
<Text textStyle='small'>Connecting unrelated things</Text>
</Title>
<Paragraph>
<Text textStyle='bold'>Sloths</Text> are arboreal mammals noted for slowness of movement and for spending most of their lives hanging upside down in the trees of the tropical rainforests of South America and Central America. The six species are in two families: <Text textStyle="italics">two-toed sloths</Text> and <Text textStyle="italics">three-toed sloths</Text>. In spite of this traditional naming, all sloths actually have three toes. The two-toed sloths have two digits, or fingers, on each forelimb. <Text autolink>You can learn more about sloths by visiting https://en.wikipedia.org/wiki/Sloth</Text>. One fun fact is that a sloth is not at all capable of using a key on a human keyboard, such as <Kbd>Ctrl</Kbd>, or writing any code, such as <Code>console.log('Hello world!)'</Code>!
</Paragraph>
<Quote cite='Albert Einstein'>
Creativity Is Intelligence Having Fun.
</Quote>
<Preformatted>
console.log('Hello world');
</Preformatted>
</div>,
document.getElementById('root')
);
API
Property | Description | Type | Default | ||
---|---|---|---|---|---|
level | title hierarchical level | number | 1 | ||
semantic | title semantic element use | boolean | true |
Property | Description | Type | Default | ||
---|---|---|---|---|---|
cite | quote citation source | string |
Property | Description | Type | Default | ||
---|---|---|---|---|---|
textStyle | text style | string | |||
autolink | autolink text | boolean | false |
Notes
Title
accepts alevel
between1
and6
(inclusive).semantic
attribute ofTitle
determines if it will render a semantically correct element, such as<h1>
, or a<span>
element with the appropriate classes.- If
autolink
is set totrue
, the component will automatically link any valid URLs. textStyle
can be one of the following:'small'
,'bold'
or'italics'
.