# SidebarTriggerProps (@salmonui/navigation/sidebar-layout)

> The SidebarTriggerProps interface of @salmonui/navigation/sidebar-layout.

Canonical: https://salmonui.dev/docs/reference/navigation/sidebar-layout/SidebarTriggerProps

```ts
import type { SidebarTriggerProps } from '@salmonui/navigation/sidebar-layout';
```

Entry index: https://salmonui.dev/docs/reference/navigation/sidebar-layout (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/navigation/sidebar-layout.md).

## Reference

Kind: interface

```ts
interface SidebarTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
    children?: ReactNode;
    action?: 'open' | 'collapse' | undefined;
    icon?: ReactNode;
    ref?: Ref<HTMLButtonElement> | undefined;
    render?: ((props: SidebarRenderProps) => ReactElement) | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `children?: ReactNode;` | optional |  |
| `action` | `action?: 'open' \| 'collapse' \| undefined;` | optional | `'open'` (default) toggles the panel; `'collapse'` toggles the icon rail. |
| `icon` | `icon?: ReactNode;` | optional | Replaces the built-in icon (decorative). |
| `ref` | `ref?: Ref<HTMLButtonElement> \| undefined;` | optional |  |
| `render` | `render?: ((props: SidebarRenderProps) => ReactElement) \| undefined;` | optional | Renders another element with the computed props (ARIA and handlers included). |
