2018-02-13 00:32:38 +03:00
|
|
|
module Examples.Text exposing (example)
|
|
|
|
|
2018-03-08 01:36:52 +03:00
|
|
|
{-|
|
|
|
|
|
|
|
|
@docs example
|
|
|
|
|
2018-02-13 00:32:38 +03:00
|
|
|
-}
|
|
|
|
|
2018-03-08 01:36:52 +03:00
|
|
|
import Html.Styled as Html
|
2018-02-13 00:32:38 +03:00
|
|
|
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
2019-07-23 17:53:43 +03:00
|
|
|
import Nri.Ui.Heading.V2 as Heading
|
2019-07-23 17:09:07 +03:00
|
|
|
import Nri.Ui.Text.V4 as Text
|
2018-02-13 00:32:38 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : ModuleExample msg
|
|
|
|
example =
|
2019-10-01 04:15:26 +03:00
|
|
|
{ name = "Nri.Ui.Text.V4"
|
2018-02-13 00:32:38 +03:00
|
|
|
, category = Text
|
|
|
|
, 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
|
2019-10-01 04:15:26 +03:00
|
|
|
[ Text.caption [ Html.text "NOTE: When using these styles, please read the documentation in the Elm module about \"Understanding spacing\"" ]
|
|
|
|
, Heading.h2 [ Heading.style Heading.Top ] [ Html.text "Paragraph styles" ]
|
2018-05-17 03:09:17 +03:00
|
|
|
, Text.mediumBody [ Html.text <| "This is a mediumBody. " ++ longerBody ]
|
|
|
|
, Text.smallBody [ Html.text <| "This is a smallBody. " ++ longerBody ]
|
|
|
|
, Text.smallBodyGray [ Html.text <| "This is a smallBodyGray. " ++ longerBody ]
|
|
|
|
, Text.caption [ Html.text <| "This is a caption. " ++ longerBody ]
|
2019-10-01 04:15:26 +03:00
|
|
|
, Heading.h2 [ Heading.style Heading.Top ] [ Html.text "Paragraph styles for user-authored content" ]
|
2019-06-28 02:00:48 +03:00
|
|
|
, Text.ugMediumBody [ Html.text <| "This is an ugMediumBody. " ++ longerBody ]
|
|
|
|
, Text.ugSmallBody [ Html.text <| "This is an ugSmallBody. " ++ longerBody ]
|
2018-02-13 00:32:38 +03:00
|
|
|
]
|
|
|
|
}
|