noredink-ui/styleguide-app/Examples/Text/Writing.elm

29 lines
805 B
Elm
Raw Normal View History

2018-03-02 00:34:44 +03:00
module Examples.Text.Writing exposing (example)
2018-03-01 01:04:22 +03:00
{- \
@docs example
-}
import Html.Styled exposing (text)
2018-03-01 01:04:22 +03:00
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
2018-03-02 00:34:44 +03:00
import Nri.Ui.Text.Writing.V1 as TextWriting
2018-03-01 01:04:22 +03:00
{-| -}
example : ModuleExample msg
example =
2019-05-03 19:56:43 +03:00
{ name = "Nri.Ui.Text.Writing.V1"
, category = Text
2018-03-01 01:04:22 +03:00
, content =
let
longerBody =
"""Be on the lookout for a new and improved assignment
creation form! Soon, you'll be able to easily see a summary
of the content you're assigning, as well as an estimate for
how long the assignment will take.
"""
in
2018-03-02 00:34:44 +03:00
[ TextWriting.footnote [ text <| "This is a footnote. " ++ longerBody ]
2018-03-01 01:04:22 +03:00
]
}