@adres/adrec-html
Framework-free Adrec components: one stylesheet, one small script, plain HTML. No React, no build step. Made for Sitecore MVC pages and partners who cannot use React.
Status: early release. Only Button is implemented so far. Pin an exact version, because markup is public API.
Use from the CDN
Load Switzer yourself (its licence does not allow redistribution), then the stylesheet and script:
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adres/adrec-html@0.1.0/dist/adrec-html.min.css">
<script src="https://cdn.jsdelivr.net/npm/@adres/adrec-html@0.1.0/dist/adrec-html.min.js" defer></script>
An optional reset is available as dist/adrec-html-reboot.css.
Button
<button class="ax-button" data-variant="primary" data-size="md">Save</button>
Variants: primary, secondary, outline, ghost, destructive, accent. Sizes: sm, md, lg, icon-sm, icon, icon-lg. Add data-elevated for the elevated look.
Modes
- Dark mode:
class="dark" or data-theme="dark" on <html>. data-theme="auto" follows the system setting.
- Right-to-left:
<html dir="rtl" lang="ar"> mirrors the components.
Self-host
Each release publishes a zip of dist/ with the stylesheet, script and LICENSE, for sites that cannot load from a CDN.
Install from npm
npm install @adres/adrec-html
MIT licence.