Anchor link list
List of anchor links for titles on page.
# Example of Accordion
<hy-anchor-link-list
list-title="Contents of the page"
open-label="Open"
close-label="Close"
anchor-items='[{"title": "Mitä koulutusohjelmia Helsingin yliopistossa on tarjolla?", "url": "#title-id-1"},{"title": "Haluaisin opiskella yksittäisiä kursseja, en kokonaista tutkintoa. Miten toimin?", "url": "#title-id-2"},{"title": "Tervetuloa Helsingin Yliopistoon", "url": "#title-id-3"}]'
>
</hy-anchor-link-list>
# Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
anchorItems | anchor-items | Array of anchor items | AnchorItem[] \| string | undefined |
closeLabel | close-label | Close state label | string | undefined |
listTitle | list-title | Title for content list button | string | undefined |
openLabel | open-label | Open state label | string | undefined |
# Dependencies
# Depends on
# Graph
graph TD;
hy-anchor-link-list --> hy-icon
style hy-anchor-link-list fill:#f9f,stroke:#333,stroke-width:4px
Helsinki University Design System