Skip to content

Commit

Permalink
Add use-case example
Browse files Browse the repository at this point in the history
  • Loading branch information
kodeFant committed Nov 1, 2024
1 parent 502aa2d commit baafd7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Guide/hsx.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ The custom HSX will validate that tags and attributes are either in the default
This approach is particularly useful for:
- Web Components with custom attribute names
- UI libraries with non-standard attributes
- Domain-specific XML markup languages like [Hyperview](https://hyperview.org/docs/example_navigation)
- Integration with third-party frameworks that extend HTML syntax

It's not usable for libraries with highly esoteric attributes, like Alpine.js. Even `uncheckedHsx` will throw an error because it doesn't recognize html attributes starting with `@` or has `:` in the attribute name. In these cases, the spread syntax `{...attributeList}` is likely your best bet.
Expand Down
1 change: 1 addition & 0 deletions ihp-hsx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ The custom HSX will validate that tags and attributes are either in the default
This approach is particularly useful for:
- Web Components with custom attribute names
- UI libraries with non-standard attributes
- Domain-specific XML markup languages
- Integration with third-party frameworks that extend HTML syntax

It's not usable for libraries with highly esoteric attributes, like Alpine.js. Even `uncheckedHsx` will throw an error because it doesn't recognize html attributes starting with `@` or has `:` in the attribute name. In these cases, the spread syntax `{...attributeList}` is likely your best bet.
Expand Down

0 comments on commit baafd7c

Please sign in to comment.