Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dtwrks/elm-book-interop-elm-ui
- Owner: dtwrks
- License: mpl-2.0
- Created: 2021-07-18T10:23:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-11T07:01:43.000Z (over 2 years ago)
- Last Synced: 2023-08-08T20:39:08.147Z (over 1 year ago)
- Topics: elm, elm-book, hexdocs, storybook
- Language: Elm
- Homepage: https://elm-book-in-elm-book.netlify.app/guides/elm-ui-and-elm-css
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
]
```