solidtype-headless
Components Kobalte lacks for solidtype, made as Kobalte makes its own
A newer version is out: solidtype-headless 0.15.2
solidtype
SolidJS for modern OCaml. Fast, accessible and reactivity-safe. Kobalte, HeroUI, Gravity UI's icons, rhp's charts and @internationalized/date's dates included.
Documentation: hyphatech.github.io/solidtype
Quickstart
opam repo add open-opam https://github.com/open-opam/opam-repository.git
opam install solidtype solidtype-heroui
bun add $(opam show solidtype-heroui --field x-npm-depends)
module Jsx = Solidtype.Jsx
module Solid = Solidtype.Solid
module Button = Solidtype_heroui.Button
let make () =
let count, set_count = Solid.create_signal 0 in
<Button variant=`secondary on_click=(fun _ -> Solid.update set_count succ)>
"Clicked " (Jsx.int (Solid.get count))
</Button>
Setting up dune and Vite to build it: Getting Started.
With an agent
Every package of solidtype installs its documentation for an agent with it,
at $(opam var <package>:doc): llms.txt, and every page in Markdown. An
agent reads it when your project's AGENTS.md tells it to:
Before working with solidtype, read `llms.txt` in `$(opam var <package>:doc)`,
for any solidtype package the project installs, then the pages it lists for
the parts you need, and use those parts rather than writing your own.
Licence
MIT, copyright Hypha Technologies Ltd. See LICENSE.
This is the README of 0.15.2, the latest version. This version's README
| Package | Constraint |
|---|---|
| solidtype-heroui | = version |