Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dtwrks/elm-book-interop-elm-ui

Use elm-ui with elm-book
https://github.com/dtwrks/elm-book-interop-elm-ui

elm elm-book hexdocs storybook

Last synced: about 1 month ago
JSON representation

Use elm-ui with elm-book

Awesome Lists containing this project

README

        

Use the `book` function and `Book` type when creating a new book and the custom `Chapter` type when creating a new chapter. Everything else should work the same as expected.

```elm
module MyBook exposing (main)

import Element exposing (el, text)
import ElmBook exposing (withChapters)
import ElmBook.ElmUI exposing (Book, book, Chapter)
import ElmBook.Chapter exposing (chapter, renderComponent)

firstChapter : Chapter x
firstChapter =
chapter "First Chapter"
|> renderComponent
(el [] <| text "Hello")

main : Book ()
main =
book "ElmBook with Elm-UI"
|> withChapters
[ firstChapter
]
```