Open jendiamond opened 2 weeks ago
@jendiamond will update this component to remove any references to BannerHeader. Also, There is no child component, this is not a new component we will add a credit prop to ResponsiveImage directly. The top description needs to specify that the details are from the Craft. @jendiamond will research further how to use slots for overlaying the credit for FTVA in ResponsiveImage component.
@jendiamond We will not need the creditText prop if we use a named slot with the conditional slot name check feature of Vue.
Component Description
Update the ResponsiveImage component so if the creditText field exists creditText will be displayed at the bottom right corner.
Design
Please also see attached screenshots for reference.
Slots
No slots needed.
Props
No props needed creditText will come in through the slot.
Developer Tips
Used a named slot for creditText https://vuejs.org/guide/components/slots
NOTE: Caption is included in the image field but creditText is a different field that is NOT include in the image object. It needs to be added and referred to separately.
DATA from the FTVA Events Detail Page in Craft
Query
Child components
None