Laminar type definitions for web component collections. Currently included collections:
Package is published to GitHub Packages in this repository. To reference it, you can use sbt-github-packages SBT plugin:
resolvers += Resolver.githubPackages("uosis")
libraryDependencies += "com.github.uosis" %%% "laminar-web-components-material" % "0.1.0"
Web Components have NPM dependencies.
Web Components have similar interface to built-in elements. See examples below.
Displays a collection of Web Components
To run:
cd examples/showcase
sbt fastOptJS::webpack
index-fastopt.html
in browsergenerator folder contains Ammonite scripts used to generate component type definitions. If you want to tweak the generated types, changes should be made here.
To run code generation:
amm generator/main.sc
material/src/main/scala/material.scala
using scalafmtmaterial.sc
using one of the existing components as an example.material.sc
as an examplematerial/
project as an examplemain.sc
to include new project