Create a web component following best practices for architectural and stylistic elements. The component should be implemented using the lit
library, with particular attention to accessibility, customisability, and reusability.
- The component must be fully functional, encapsulating all logic and styles necessary for its operation.
- Implement
static styles
usingcss
imported fromlit
, ensuring all CSS properties are exposed as custom properties on the host element for easy styling customisation. - Define slots and CSS parts to allow users to customise the content and style of different component parts.
- Ensure the component is accessible, including proper ARIA attributes and roles where necessary.