Custom elements · Kotlin & Ktor
Meta's Astryx design system, as standard custom elements. No React, no build step.
Install
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/oblyx/dist/oblyx.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/oblyx/dist/oblyx.js"></script>Two ways to use it
HTML
Plain HTML
Any server-rendered page reaches for the same tag directly.
<oblyx-button variant="primary">Primary</oblyx-button>Kotlin + Ktor
Kotlin and Ktor
Builder functions generated from the same component manifest, with real enum constants.
oblyxButton(variant = OblyxButtonVariant.PRIMARY) { +"Primary" }