Migrate Facets

Migrate a facet in an Aura component to a slot in a Lightning web component.

A facet in an Aura component is an attribute with a type of Aura.Component[]. For example:

In a Lightning web component, we use slots instead of the facets. This template defines two named slots.

This code consumes the <c-namedslots> component.

This HTML is the rendered output.

See Also