-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html_helper #16
base: master
Are you sure you want to change the base?
html_helper #16
Conversation
README.md
Outdated
This repo contains these sets | ||
|
||
- @qubit/utils/dom | ||
- @qubit/html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be @qubit/utils/html
?
@@ -154,3 +161,28 @@ Functionality is the same as described in https://developer.mozilla.org/en-US/do | |||
```js | |||
const closestElement = closest(targetElement, selectors) | |||
``` | |||
|
|||
### @qubit/html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@qubit/html
would be a different package right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if it should be part of utils because it is directly related to html element creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right but the name @qubit/html
implies a separate package, did you mean @qubit/utils/html
?
Just wondering what kind of stuff do we want to live here vs stuff that should live in the |
also, do we want to encourage people to create elements this way vs using jsx? |
6e1d88c
to
1f08a37
Compare
81973d7
to
a858416
Compare
I've found this useful when doing badging placements that are so small preact feels like overkill |
I've made a few small badge type placements. Found it clearer to use a configuration based API to create elements