Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<details>
<summary>Example with `Style` and `StyleEl`</summary>

```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")),
},
})
}
```

</details>