API reference: @salmonui/navigation/sidebar-layout
SidebarTriggerPropsinterface
import type { SidebarTriggerProps } from '@salmonui/navigation/sidebar-layout';interface SidebarTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
children?: ReactNode;
action?: 'open' | 'collapse' | undefined;
icon?: ReactNode;
ref?: Ref<HTMLButtonElement> | undefined;
render?: ((props: SidebarRenderProps) => ReactElement) | undefined;
}
| Name | Signature | Description |
|---|---|---|
childrenoptional | children?: ReactNode; | |
actionoptional | action?: 'open' | 'collapse' | undefined; |
|
iconoptional | icon?: ReactNode; | Replaces the built-in icon (decorative). |
refoptional | ref?: Ref<HTMLButtonElement> | undefined; | |
renderoptional | render?: ((props: SidebarRenderProps) => ReactElement) | undefined; | Renders another element with the computed props (ARIA and handlers included). |