Skip to content

Commit 9bb1d97

Browse files
committed
Fix faulty documentation
1 parent 361f038 commit 9bb1d97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Lumi/Components2/Text.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ type TextProps =
5151
type TextElement = ReactComponent { children :: Array JSX, className :: String }
5252

5353
-- | Inline piece of text whose `content` prop is a `String`. Elements of this
54-
-- | component should preferentially be used only where an inline element is
55-
-- | expected, that is, from within the contents of a block-level element.
54+
-- | component should preferentially be used only where an inline piece of text
55+
-- | with no bottom margin is expected.
5656
-- |
57-
-- | For block-level text elements, please use `paragraph`, `paragraph_`, or the
58-
-- | header components defined in this module.
57+
-- | For block-level, independent text elements, please use `paragraph`,
58+
-- | `paragraph_`, or the header components defined in this module.
5959
text :: LumiComponent TextProps
6060
text =
6161
unsafePerformEffect $ lumiComponent "Text" defaults \props -> Hooks.do

0 commit comments

Comments
 (0)