webc icon indicating copy to clipboard operation
webc copied to clipboard

Single File Web Components

Results 70 webc issues
Sort by recently updated
recently updated
newest added

I can’t figure out why I can’t reference component props when trying to set up data with ``, as it just crashes the build. ```bash [11ty] Original error stack trace:...

When I use `` in a component, the `class="hash"` will only be applied to the root node. But on a page it will be set to all nodes. **Example 1:**...

I was trying to create a reusable `` component, and my naive approach was to use slots, but that didn't work. I've resorted to using a render function within my...

Now that declarative shadow DOM is available cross browser, it might be a good idea to respect ``/`slot=` inside WebC templates. Web's own slots could be renamed to something like...

I'm working on a project where I utilize the ability to pass on a lot of attributes to my WebC components, but at the same time using props to control...

Here is a case where I don't want extra space. ```html function dateToAttribute(date) { return new Date(date).toISOString(); } function readableDate(date, locale) { return new Date(date).toLocaleString(locale || "en-GB"); } ``` I'm...

I tried accessing the built-in `content` variable in `webc:setup`, which stores the contents of the template for some manipulation/transformation, and got unexpected behavior. I have this structure: ``` _includes ├─...

Hey Zach! I've a question for you. Do you think we can break down this project into smaller subprojects? I absolutely adore WebC as a template engine. It's incredibly convenient,...

The next sibling selector (adjacent sibling selector) does not work with `:host`. ``` :host + :host { margin-block-start: 1rem; } ``` This should output `xyz + xyz` but produces `xyz...

Hey! Doesn't seem like an urgent fix but... This does not work properly (or at least not as I expected): ``` ``` The component renders but the `test` prop is...

enhancement