<Summon> 0.7.0.2 is out! For anyone not familiar, ...
# feed
y
Summon 0.7.0.2 is out! For anyone not familiar, Summon is a Kotlin Multiplatform UI framework for building web apps with Compose-like declarative syntax. It targets JS, WASM, and JVM (server-side rendering with hydration). You write
@Composable
functions with
remember
,
mutableStateOf
, and
Modifier
chains, and it renders to the browser DOM or produces SSR HTML on the server. The big addition in 0.7.0.2 is a complete HTML5 semantic elements DSL. Instead of wrapping everything in generic Box/Column/Row containers, you can now use proper semantic HTML directly in your composables:
Article
,
Section
,
Nav
,
Header
,
Footer
,
H1
-
H6
,
P
,
Table
, `Details`/`Summary`, and about 70 more elements. They all accept a
Modifier
and nest naturally with the existing component system. Other highlights: • Responsive breakpoint modifiers:
Modifier().md { padding(16.px) }.lg { padding(24.px) }
with
xs
through
xxl
helpers, plus
*Down()
and
*Only()
variants • CSS combinator selectors:
.child("p")
,
.descendant(".highlight")
,
.adjacentSibling("div")
,
.generalSibling("span")
• Multi-window APIs:
SyncedStorage
for cross-tab reactive state,
BroadcastChannel
for cross-window messaging,
WindowManager
for opening/managing windows,
DragCoordinator
for cross-window drag and drop • File dialogs:
showOpenFileDialog()
,
showSaveFileDialog()
,
showDirectoryPicker()
via the File System Access API • MenuBar component: Declarative app menu bar with a DSL builder and keyboard shortcut support • Picture-in-Picture: Render composable content into a Document PiP window Maven:
codes.yousef:summon:0.7.0.2
GitHub: https://github.com/codeyousef/summon Changelog: https://github.com/codeyousef/summon/blob/main/CHANGELOG.md Slack: #C0A6SUUEA8N Happy to answer questions or hear feedback!
K 8
🎉 3
🔥 1
d
Great stuff 🔥
kodee loving 1