fast icon indicating copy to clipboard operation
fast copied to clipboard

feat(fast-html): Automatically create a component with a template and no class

Open janechu opened this issue 5 months ago • 0 comments

Description

There are cases where a FASTElement is necessary, and a <f-template> is provided. However, if the FASTElement is only an empty wrapper for the case of style encapsulation and HTML templating.

Concept

If a template exists, but has no bindings create a dummy FASTElement with as light as possible imports to allow for the replication of the component with it's template only. This should follow a progressive enhancement so that as little of FASTElement logic is imported when this custom element is created.

Next steps

Investigation: Determine if there are other cases where attribute bindings may be created via some utility like Observer Map which do not confer any additional logic but simply pass the resulting bindings to internal elements (i.e. a custom element with a button in it's template that passes aria attributes etc.).

janechu avatar Aug 04 '25 17:08 janechu