rnons / Purescript Halogen Storybook
Licence: bsd-3-clause
A library to assemble examples or develop components separately.
Stars: ✭ 33
Programming Languages
purescript
368 projects
Labels
Projects that are alternatives of or similar to Purescript Halogen Storybook
Examples
Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
Stars: ✭ 747 (+2163.64%)
Mutual labels: examples
Introduction
Code examples and additional documentation for using Calimero
Stars: ✭ 10 (-69.7%)
Mutual labels: examples
Terrarium Templates
Template and example projects for Fastly Labs Terrarium https://wasm.fastlylabs.com
Stars: ✭ 21 (-36.36%)
Mutual labels: examples
Sense Extension Recipes
A collection of recipes to speed up development of Qlik Sense Visualization Extensions.
Stars: ✭ 17 (-48.48%)
Mutual labels: examples
Php Ffi Examples
Runnable examples to learn how PHP FFI works
Stars: ✭ 26 (-21.21%)
Mutual labels: examples
Spring Boot Rest Api Example
Implement REST APIs using Spring Boot and Spring Session.
Stars: ✭ 10 (-69.7%)
Mutual labels: examples
Elixir rust interop demo
Demonstrate calling Rust functions from Elixir using Erlang NIF interface
Stars: ✭ 15 (-54.55%)
Mutual labels: examples
Kotlin Android Examples
💪 [Examples] Isolated applications purely on Kotlin, for all android devs out there
Stars: ✭ 902 (+2633.33%)
Mutual labels: examples
Ethereum Development With Go Book
📖 A little book on Ethereum Development with Go (golang)
Stars: ✭ 754 (+2184.85%)
Mutual labels: examples
Tldr
📚 Collaborative cheatsheets for console commands
Stars: ✭ 36,408 (+110227.27%)
Mutual labels: examples
Grpc By Example Java
A collection of useful/essential gRPC Java Examples
Stars: ✭ 709 (+2048.48%)
Mutual labels: examples
Jaxws Samples
Small example projects using JAX-WS technologies.
Stars: ✭ 11 (-66.67%)
Mutual labels: examples
Examples
OBSOLETE. This repo was for Caddy v1. For v2 and newer, see our forum's wiki category.
Stars: ✭ 963 (+2818.18%)
Mutual labels: examples
Cht.exe
cht.sh libcurl client for windows XP+ with changed colorization
Stars: ✭ 15 (-54.55%)
Mutual labels: examples
purescript-halogen-storybook
A library to assemble examples or develop components separately.
You might be interested in purescript-halogen-custom-element which allows embedding Halogen components anywhere in an HTML or Markdown file.
How to use
First define the stories. Each story consists of a name and a component. If the name is empty string, it will be rendered as the index page.
import Foreign.Object as Object
import Halogen.Storybook (Stories, runStorybook, proxy)
stories :: forall m. Stories m
stories = Object.fromFoldable
[ Tuple "" $ proxy ExpIndex.component -- override the index page
, Tuple "count" $ proxy ExpCount.component
, Tuple "input" $ proxy ExpInput.component
]
Then add a runStorybook
line to your main function. That's it.
main = HA.runHalogenAff do
HA.awaitBody >>=
runStorybook
{ stories
, logo: Nothing -- pass `Just HH.PlainHTML` to override the logo
}
You need to include the CSS by yourself, use Storybook.css as an example.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].