Example 1 — Native <details> / <summary>
What is included?
This uses the browser’s built-in open/close behavior.
- Keyboard accessible by default
- State is stored in the
openattribute - Simple markup
Example 2 — Button toggles a controlled panel
Orders ship within 1–2 business days. Tracking is emailed after dispatch.
- Domestic: 2–5 days
- International: 7–14 days
Tip: Use Tab to focus the button, then Enter / Space to toggle.
Example 3 — Accordion (only one open at a time)
Return unused items in original packaging for a full refund.
- Include receipt or order number
- Refunds processed in 3–7 business days
One-year limited warranty covering manufacturing defects.
- Normal wear not covered
- Contact support with photos for faster handling
We’re available Mon–Fri, 9am–5pm.
- Email: support@example.com
- Phone: (555) 010-1234