This content is hidden by default. Click the triangle or label to toggle visibility.
The animation is smooth and the component is fully accessible.
Automatic file type icons based on extension:
This content is hidden by default. Click the triangle or label to toggle visibility.
The animation is smooth and the component is fully accessible.
This disclosure starts in the open state because it has the open attribute.
Instead of using a slot, you can set the label via the label attribute.
This disclosure has a slower animation duration.
Customize the speed with the duration attribute.
Disclosures can contain any HTML content:
This is a nested disclosure triangle.
<!-- Include the bundle --> <script src="dist/download-link.min.js"></script> <!-- Use the components --> <download-link file="report.pdf"> Download Report </download-link> <disclosure-triangle> <span slot="label">More Info</span> <p>Hidden content here</p> </disclosure-triangle>