-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
We need dropdown/collapsible components that can be used within documentation pages to hide and show content.
What to build:
A collapsible section component that users can add to their markdown documentation. Think of it like an accordion or details/summary element - you see a title, click it, and more content expands below.
Where to work:
- Create a new component in
src/luma/app/components/(e.g.,Dropdown.tsxorCollapsible.tsx) - Add Markdoc configuration in
src/luma/app/markdoc/so it can be used in markdown
What it should do:
- Show a title/heading that's always visible
- Click the title to expand/collapse the content
- Show a visual indicator (chevron/arrow icon) that rotates when open/closed
- Smooth animation when opening/closing
- Support any markdown content inside (text, code blocks, lists, etc.)
Example usage in markdown:
Users should be able to write something like:
{% dropdown title="Advanced Configuration" %}
Here's some advanced content that's hidden by default...
{% /dropdown %}
Technical approach:
- Create the React component with open/closed state
- Register it as a custom Markdoc tag (check
src/luma/app/markdoc/for examples) - Style it with Tailwind CSS
Reference:
Look at how CodeBlock.tsx is implemented and registered in the Markdoc config - you'll follow a similar pattern!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers