nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.98k stars 499 forks source link

LandingFAQ component in Pro ignores the "slot" property of an item #2057

Open rcoudercher opened 2 months ago

rcoudercher commented 2 months ago

Environment

Version

2.18.4

Reproduction

https://stackblitz.com/edit/github-qsqtmc?file=app.vue

Description

LandingFAQ being built on top Accordion, when an item has a specified "slot" property, it should allow to display custom content in a corresponding slot. In my reproduction, you can see i have an faq item with a slot property equal to "risks". When using <template #risks> risks to show a specific content for that item, it works well in the accordion but is ignored in the LandingFAQ where the content property is shown instead.

Additional context

No response

Logs

No response

DrxcoDev commented 2 months ago

Update the LandingFAQ component to properly handle and render custom slots when defined, and ensure the parent component defines these slots correctly, then test to confirm the custom content displays as expected.