From bf0422d8710af9dd0be3bc10e333587e9609f36d Mon Sep 17 00:00:00 2001 From: maragubot Date: Thu, 17 Sep 2026 11:38:48 +0200 Subject: [PATCH] Remove the `Style` and `StyleEl` example from the README --- README.md | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/README.md b/README.md index da3a3e5..1c3ba76 100644 --- a/README.md +++ b/README.md @@ -196,30 +196,3 @@ I've chosen one or the other based on what I think is the common usage: - `title`: `TitleEl` (element) / `Title` (attribute) Deprecated aliases (`CiteEl`, `DataAttr`, `FormEl`, `LabelEl`, `StyleAttr`, `TitleAttr`) also exist for backwards compatibility but should not be used in new code. - -
- Example with `Style` and `StyleEl` - -```go -package html - -import ( - . "maragu.dev/gomponents" - . "maragu.dev/gomponents/components" - . "maragu.dev/gomponents/html" -) - -func MyPage() Node { - return HTML5(HTML5Props{ - Title: "My Page", - Head: []Node{ - StyleEl(Raw("body {background-color: #fff; }")), - }, - Body: []Node{ - H1(Style("color: #000"), Text("My Page")), - }, - }) -} -``` - -