Comments (4)
Maybe allow people to use <ile-root>
directly as a component in their templates and let them specify attributes directly on it, and then when compiling, if you see the ile-root
component in there, just skip adding it.
Maybe?
from iles.
After considering the usages in existing sites, and assessing the trade-offs in implementation complexity, I decided to try the following approach.
The current behavior will be to apply the class
attribute to the ile-root
wrapper.
The inner component will still receive that class
, and can choose to ignore it or apply it, as with any other prop.
from iles.
Marking it as an enhancement because .parent > *
is a simple workaround for styling.
Would like to get some proposals for how to differentiate attributes for the wrapper and the inner component.
I'm leaning towards reserving the ile-
prefix, as in ile-class
and ile-style
, which would be applied in the ile-root
element:
<div class="parent">
<MyComponent client:load ile-class="child" class="grandchild">
</div>
would result in:
<div class="parent">
<ile-root id="ile-1" class="child">
<div class="grandchild">Hello World!</div>
</ile-root>
</div>
from iles.
It seems that adding class="abcd"
works during development (iles dev --open
) but not after generation of the static page (iles build && iles preview --open
). I would really like to use this :)
from iles.
Related Issues (20)
- Feature Request - IlesIcon module HOT 4
- Issue resolving esm export in vite plugin during build HOT 4
- Turning off reactivityTransform by default
- Ship unplugin-auto-import with vue & vue-router presets HOT 1
- Expose unplugin-vue-components config to extend resolvers HOT 2
- mdxComponent works in dev but not on build HOT 7
- Hydration issue with client:visible HOT 2
- Auto-install issues HOT 2
- HMR on style updates in pages with islands
- Erroring when adding client directives HOT 7
- Component not rendering when using client:only directive
- Dynamic routes not catching slugs containing '.' HOT 1
- Svelte & jsx/tsx don't render without client directives HOT 1
- Svelte component works with client:load but not with client:visible
- Unable to apply client directive when using Vuetify HOT 3
- TypeScript cannot find a declaration file for module `@islands/icons`
- Issues with peer dependency versions HOT 1
- Rendered pages are blank when building inside monorepo with `pnpm` HOT 1
- Twitter meta tags HOT 1
- iles using a named export from vue/transformer-sfc that does not exist HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iles.