Carnation is now in early alpha. Read more

Docs
Primitives

Primitives

🚧

This page is under construction.

<c.article>
  <c.h1>Hey, Little Songbird</c.h1>
  <c.p>
    by <c.a href="/author/hades">Hades</c.a>
  </c.p>
 
  <c.button onPress={play}>
    <c.span>Play</c.span>
  </c.button>
</c.article>

API Reference

The following props are available on all primitive components (except <c.svg> child components).

PropTypeDefaultDescription
classNamestring
idstring
role"tablist" | "tab" | "tabpanel"
tabIndex0 | -1
ariaHiddenboolean
ariaLabelstring
ariaLabelledBystring
ariaModalboolean
ariaControlsstring
ariaBusyboolean
ariaCheckedboolean | "mixed"
ariaDisabledboolean
ariaExpandedboolean
ariaSelectedboolean
ariaCurrent"page"