<!-- AUTO-GENERATED by packages/components/bin/generate-skill-component-catalog.js. Do not edit by hand. -->

# r-accordion-trigger

The clickable header button that controls an accordion panel's expanded or collapsed state. Must be placed in the `accordion-trigger` slot of `r-accordion-section`.
Example:
```
<r-accordion>
  <r-accordion-section>
    <r-accordion-trigger>
      <r-icon slot="leading-icon" name="info" size="m"></r-icon>
      Section title
    </r-accordion-trigger>
    <r-accordion-panel>Section content goes here.</r-accordion-panel>
  </r-accordion-section>
</r-accordion>
```

## class: `RAccordionTrigger`, `r-accordion-trigger`

### Fields

| Name       | Privacy | Type      | Default | Description                                               | Inherited From |
| ---------- | ------- | --------- | ------- | --------------------------------------------------------- | -------------- |
| `disabled` |         | `boolean` |         | Controls disabled state                                   |                |
| `expanded` |         | `boolean` |         | Indication of the controlled panel revelation.            |                |
| `panel`    |         | `string`  |         | Id of the panel this trigger controls.                    |                |
| `splitted` |         | `boolean` |         | Controls if expanded and collapsed icons are not the same |                |

### Events

| Name            | Type                                                                                          | Description           | Inherited From |
| --------------- | --------------------------------------------------------------------------------------------- | --------------------- | -------------- |
| `rClickTrigger` | `CustomEvent<{ element: HTMLRAccordionTriggerElement; panelId: string; expanded: boolean; }>` | Emit click on trigger |                |
| `rKeyupTrigger` | `CustomEvent<{ element: HTMLRAccordionTriggerElement; panelId: string; expanded: boolean; }>` | Emit keyup on trigger |                |

### Attributes

| Name       | Field    | Inherited From |
| ---------- | -------- | -------------- |
| `disabled` | disabled |                |
| `expanded` | expanded |                |
| `panel`    | panel    |                |
| `splitted` | splitted |                |

### Slots

| Name           | Description                        |
| -------------- | ---------------------------------- |
|                | Trigger label text                 |
| `icon`         | Override icon on the trailing side |
| `leading-icon` | Icon placed before the label       |

<hr/>

## Exports

| Kind                        | Name                  | Declaration       | Module | Package |
| --------------------------- | --------------------- | ----------------- | ------ | ------- |
| `js`                        | `RAccordionTrigger`   | RAccordionTrigger |        |         |
| `custom-element-definition` | `r-accordion-trigger` | RAccordionTrigger |        |         |
