x
1
2
3
4
5
6
7
<details-toggle> <details data-target="details-toggle.detailsTarget" data-view-component="true" class="details-overlay"> <summary aria_label_closed="Expand details" aria_label_open="Collapse details" role="button" data-target="details-toggle.summaryTarget" data-action="click:details-toggle#toggle" data-aria-label-closed="Expand details" data-aria-label-open="Collapse details" aria-expanded="false" aria-label="Expand details" data-view-component="true" class="btn"> Summary with aria labels </summary> <div data-view-component="true">Body</div> </details></details-toggle>
1
2
3
4
5
6
7
8
render Primer::Beta::Details.new(reset: reset, overlay: overlay, disabled: disabled) do |component| component.with_summary(aria_label_closed: "Expand details", aria_label_open: "Collapse details") do "Summary with aria labels" end component.with_body do "Body" endend
No notes provided.
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
No assets to display.