WelcomeBasic ConceptsGetting StartedElementsButtonDataGridIcons

Elements

Elements are theme-aware versions of their html primitives. Styling is scoped to the component preventing global css scope pollution.


import { H1 } from '@cozmos-ui/elements';

Headings

Body

Lists

Tables

It's generally recommended to use the library's Datagrid component. But, sometimes a simple table is all that's needed.

Variants

The variant prop enables an element to appear as though it was another, decoupling html and visual heirarchies. Here's the same example from the headings section above, but with the visual order reversed.

Component List

NameTheme Key
<A>styles.a
<B>styles.b
<Blockquote>styles.blockquote
<H1>styles.h1
<H2>styles.h2
<H3>styles.h3
<H4>styles.h4
<H5>styles.h5
<H6>styles.h6
<Hr>styles.hr
<Img>styles.img
<Li>styles.li
<Ol>styles.ol
<P>styles.p
<Pre>styles.pre
<Strong>styles.strong
<Table>styles.table
<Td>styles.td
<Th>styles.th
<Ul>styles.ul

Props

NameTypeRequiredDefaultDescription
variantenumNo---Styles an element as another, decoupling html and visual heirarchies.