1module CardStories where
3import Prelude hiding (add)
5import Card.Component (mkCard, mkCardContent, mkCardSubtitle, mkCardTitle)
6import Decorator.FullScreen (fullScreenDecorator)
8import React.Basic.DOM as R
9import React.Basic.Hooks (component, element)
10import Storybook.React (Storybook, add, addDecorator, storiesOf)
12stories ∷ Effect Storybook
15 addDecorator fullScreenDecorator
16 add "Example card" mkExample
17 [ { title: "An example card"
18 , subtitle: "It says some more"
19 , content: R.text loremIpsum
25 cardTitle <- mkCardTitle
26 cardSubtitle <- mkCardSubtitle
27 cardContent <- mkCardContent
28 component "ExampleCard" \{ title, subtitle, content } -> React.do
32 [ element cardTitle { children: [ R.text title ] }
33 , element cardSubtitle { children: [ R.text subtitle ] }
34 , element cardContent { children: [ content ] }
40 """PureScript is a strongly-typed, purely-functional programming language that compiles"""
41 <> """ to JavaScript. It can be used to develop web applications, server side apps, and al"""
42 <> """so desktop applications with use of Electron. Its syntax is mostly comparable to tha"""
43 <> """t of Haskell. In addition, it introduces row polymorphism and extensible records.[2]"""
44 <> """ Also, contrary to Haskell, PureScript adheres to a strict evaluation strategy."""
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list