Header Semantic Tags #36
Unanswered
nonfungibletunji
asked this question in
Q&A
Replies: 1 comment
-
hi, not quite sure what you are asking here 🤔 in terms of docs there is the readme and the DocC API docs (also hosted on swiftpackageindex) however, every tag element in elementary is called exactly as in html, so this would roughly be like section(.class("hero") {
h1(.class("hero-message") {
div { "Hero layout with" }
// ... and so on
}
} same goes for attributes - names map 1:1. however, not every attribute has been defined in the swift model yet. PRs welcome ; ) it is a core design choice of elementary to NOT introduce another layout/semantic/UI-concept model, but to stay true to HTML. you can always build your own bespoke component library on top (that's the idea at least). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any Documentation? semnatic tags like section, header, article
how would we convert this code.....
Beta Was this translation helpful? Give feedback.
All reactions