boulevard / vampire Goto Github PK
View Code? Open in Web Editor NEWSlots without shadows.
License: MIT License
Slots without shadows.
License: MIT License
@daniel-nagy great work on this. I really want to use it in combination with Lit Element but I'm struggling to figure out how to integrate it into my existing set of components. I'm using a very simple rollup config with only typescript
and resolve
plugins. But I'm getting other errors related to the @babel/plugin-proposal-class-properties
plugin.
I don't want to use babel for my modern browser build if possible, but I'm unclear on how to get it all wired up.
Any thoughts or clarity you could add to the README would be helpful. Thanks!
When providing content for a named slot, if there is any whitespace it will be slotted to the default slot and the default slot's fallback content will not be rendered.
e.g.
@customElement('x-element')
class XElement extends LitElement {
render() {
return html`
<v-slot>
<v-slot-fallback-content>Test</v-slot-fallback-content>
</v-slot>
<v-slot name="other-slot"></v-slot>
`;
}
}
<x-element>
<div v-slot="other-slot">Other Content</div>
<x-element>
Empty text nodes will be created and slotted to the nameless slot, preventing the fallback content from rendering.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.