Skip to content
Snippets Groups Projects
readme.md 2.12 KiB
Newer Older
  • Learn to ignore specific revisions
  • Tuukka Turu's avatar
    Tuukka Turu committed
    ---
    title: Accordion
    sidebar: true
    ---
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    # Accordion
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    Accordion component
    
    ## Usage
    
    <hy-accordion-container>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 1">
      <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 2">
      <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 3">
      <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    </hy-accordion-container>
    
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    ```html
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    <hy-accordion-container>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 1">
        <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 2">
        <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      <hy-accordion-item accordiontitle="This is a accordion item 3">
        <hy-paragraph-text>Accordion content</hy-paragraph-text>
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      </hy-accordion-item>
    </hy-accordion-container>
    ```
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    <!-- Auto Generated Below -->
    
    ## Properties
    
    
    | Property         | Attribute        | Description | Type                                                  | Default                     |
    | ---------------- | ---------------- | ----------- | ----------------------------------------------------- | --------------------------- |
    | `accordiontitle` | `accordiontitle` |             | `string`                                              | `undefined`                 |
    
    druid's avatar
    druid committed
    | `headerstyle`    | `headerstyle`    |             | `string`                                              | `'common'`                  |
    
    | `variant`        | `variant`        |             | `AccordionVariants.default \| AccordionVariants.mini` | `AccordionVariants.default` |
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    ## Dependencies
    
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    ### Used by
    
    - [hy-footer-info](../footer/hy-footer-info)
    
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    ### Depends on
    
    - [hy-icon](../icon)
    
    ### Graph
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    ```mermaid
    graph TD;
      hy-accordion-item --> hy-icon
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      hy-footer-info --> hy-accordion-item
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      style hy-accordion-item fill:#f9f,stroke:#333,stroke-width:4px
    ```
    
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    ---
    
    Helsinki University Design System