Description
In the implementation proposal of “Slot and Fills” pattern, the “library” property is described as:
library: Name of the component they want to use. Required.
Why not use the name component
for this propety?
Examples
Possible solution
Use a component
property in the configuration object to define the Fill for the Slot and Fills pattern
const state = {
fills: {
namespace: {
nameOfTheFill: {
slot: "Name of the slot they want to feel",
component: "AnyComponentWeWantToUseForTheFill",
priority: 5,
props: {
// Object with props that will be passed to the component.
},
},
},
},
};