Skip to content

Commit

Permalink
docs: change style to attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Massolari committed Aug 12, 2024
1 parent 2b01b03 commit c6ec71c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pink.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn react_fragment(attributes: Json, children: List(ReactNode)) -> ReactNode
/// ],
/// [
/// text([], "Hello, "),
/// text([style.underline()], "world!"),
/// text([attribute.underline(True)], "world!"),
/// ]
/// )
/// )
Expand Down Expand Up @@ -102,8 +102,8 @@ pub fn text(
/// ## Examples
/// ```gleam
/// text_nested(attr: [], content: [
/// text([style.bold()], "Hello, "),
/// text([style.underline()], "world!"),
/// text([attribute.bold(True)], "Hello, "),
/// text([attribute.underline(True)], "world!"),
/// ])
/// ```
pub fn text_nested(
Expand Down Expand Up @@ -133,7 +133,7 @@ fn node(
/// ```gleam
/// fragment(attr: [], elements: [
/// box([attribute.padding(1)], [pink.text([], "Hello, ")]),
/// text([style.underline()], "world!"),
/// text([attribute.underline(True)], "world!"),
/// ])
/// ```
pub fn fragment(
Expand All @@ -156,7 +156,7 @@ pub fn fragment(
/// ],
/// components: [
/// text([], "Hello, "),
/// text([style.underline()], "world!"),
/// text([attribute.underline(True)], "world!"),
/// ]
/// )
/// ```
Expand Down

0 comments on commit c6ec71c

Please sign in to comment.