tessl install tessl/npm-stencil--core@4.36.0A comprehensive web component compiler that transforms TypeScript and JSX code into standards-compliant web components with complete development toolchain.
Agent Success
Agent success rate when using this tile
75%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.44x
Baseline
Agent success rate without this tile
52%
Build a web component that displays user notifications and emits custom events when users interact with them.
Create a Stencil component called user-notification that:
The component should render:
When the "Dismiss" button is clicked, emit an event that bubbles through the DOM.
When the "View Details" button is clicked, emit an event that includes the notification message as part of the event's detail payload.
@generates
import { Component, Prop, Event, EventEmitter, h } from '@stencil/core';
@Component({
tag: 'user-notification',
shadow: true,
})
export class UserNotification {
@Prop() message: string;
// Define events here
render() {
// Implementation
}
}Provides web component compilation and runtime support.
@satisfied-by