Skip to content

Commit

Permalink
Add a link to the attrs readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 16, 2024
1 parent 979c970 commit 750102b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ When the above Go code is executed and the `.Render()` method is called, it prod

### Attributes and Styles

The `attrs` subpackage provides type-safe attribute functions that ensure you're setting valid attributes for your elements. This helps eliminate potential issues at runtime due to misspelled or unsupported attribute names.
The [`attrs`](attrs/README.md) subpackage provides type-safe attribute functions that ensure you're setting valid attributes for your elements. This helps eliminate potential issues at runtime due to misspelled or unsupported attribute names.

For boolean attributes like `checked` and `selected`, you can simply assign them the value `"true"` or `"false"`. When set to `"true"`, the library will correctly render these attributes without needing an explicit value. For instance:

Expand Down

0 comments on commit 750102b

Please sign in to comment.