Paragraph
A paragraph or title of text.
If this paragraph is a heading (using one of the
h#
properties), and it has an ID, it will receive a "link" button on hover that will navigate to that heading.In many cases, this can replace Joy UI's Typography component, however, you may still use Typography for purposes not served by this component.
Props
The same as Joy UI's Typography component, as well as:
body
orsidenote
orbox
orh1
orh2
orh3
orh4
orh5
orh6
: A boolean that indicates whether the text is a body or a sidenote or a heading. The special valueblock
can be used for more complex layouts where a margin is not wanted (eg. flexbox children in custom layouts), similar to Joy UI's Box or HTML<div>
.
Examples
Block text
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Laoreet sit amet cursus sit amet dictum sit amet. Nisl vel pretium lectus quam id leo in vitae turpis.
Senectus et netus et malesuada fames ac turpis egestas. Faucibus in ornare quam viverra orci sagittis eu volutpat odio. Et tortor at risus viverra adipiscing at in tellus integer.
Consectetur dolor
Auctor urna nunc id cursus. Faucibus interdum posuere lorem ipsum dolor sit amet consectetur. Leo vel fringilla est ullamcorper eget. Netus et malesuada fames ac.
Ullamcorper scelerisque
Orci a scelerisque purus semper eget duis at tellus at. Ullamcorper morbi tincidunt ornare massa eget egestas purus viverra. Iaculis urna id volutpat lacus laoreet non curabitur gravida arcu. Elementum nibh tellus molestie nunc non blandit massa.
Laoreet suspendisse interdum consectetur libero id faucibus nisl. Tincidunt tortor aliquam nulla facilisi cras fermentum odio eu feugiat.