Example: Custom Lightning Web Component to Custom Lightning Web Component
Make a custom lightning web component react to another custom component.
This example assumes both the customText component and the colorNamecomponent have been added to the Flow Builder. The customTextcomponent is used to control colorName component.
- Add the
customTextcomponent and thecolorNamecomponent and provide labels for each. - In the
colorNamecomponent’s Name of Color field, choose thecustomTextcomponent as the source.
Any changes made to the customText component are automatically reflected in the color public field inside of colorName. For example, entering magenta into the customText input results in the colorName displaying the color name styled with the same color, magenta.