ui icon indicating copy to clipboard operation
ui copied to clipboard

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

Open rcoudercher opened this issue 1 year ago • 1 comments

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, extends, modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

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

rcoudercher avatar Aug 16 '24 15:08 rcoudercher

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.

DrxcoDev avatar Aug 16 '24 15:08 DrxcoDev

Hi! 👋

This issue has been automatically closed due to prolonged inactivity.

We're a small team and can't address every report, but we appreciate your feedback and contributions.

If this issue is still relevant with the latest version of Nuxt UI, please feel free to reopen or create a new issue with updated details.

Thank you for your understanding and support!

— Nuxt UI Team

github-actions[bot] avatar Jun 18 '25 09:06 github-actions[bot]