From c6ec71c736fc06f4309b2106c0f7ecc192630e1c Mon Sep 17 00:00:00 2001 From: "Douglas M." Date: Mon, 12 Aug 2024 12:14:44 +0200 Subject: [PATCH] docs: change `style` to `attribute` --- src/pink.gleam | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pink.gleam b/src/pink.gleam index 5840a6e..5eec050 100644 --- a/src/pink.gleam +++ b/src/pink.gleam @@ -33,7 +33,7 @@ fn react_fragment(attributes: Json, children: List(ReactNode)) -> ReactNode /// ], /// [ /// text([], "Hello, "), -/// text([style.underline()], "world!"), +/// text([attribute.underline(True)], "world!"), /// ] /// ) /// ) @@ -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( @@ -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( @@ -156,7 +156,7 @@ pub fn fragment( /// ], /// components: [ /// text([], "Hello, "), -/// text([style.underline()], "world!"), +/// text([attribute.underline(True)], "world!"), /// ] /// ) /// ```