@caderno-ui/elements
v0.4.1
Published
Framework-agnostic Caderno UI custom elements implemented with Lit.
Maintainers
Readme
@caderno-ui/elements
Framework-agnostic cad-* custom elements implemented with Lit.
pnpm add @caderno-ui/elements @caderno-ui/iconsimport '@caderno-ui/elements/alert'<cad-alert variant="warning">
<span slot="title">Review needed</span>
The implementation and contract have diverged.
</cad-alert>Import individual entry points (alert, bookmark, icon, or tabs) to register only the elements you use. Import @caderno-ui/elements/fallback.css for useful pre-upgrade and no-JavaScript styles. The package is ESM-only.
Import @caderno-ui/elements/scrollbar.css after the theme for matching native page and component scrollbars. Customize --cad-scrollbar-thumb, --cad-scrollbar-thumb-hover, --cad-scrollbar-track, and --cad-scrollbar-size (10px). Touch and forced-color modes keep platform controls; Firefox keeps its native thin shape.
The package ships a Custom Elements Manifest with attributes, events, CSS parts, and CSS custom properties.
