Skip to content

@sqlrooms/room-shell / SidebarButton

Function: SidebarButton()

SidebarButton(props): ReactNode | Promise<ReactNode>

Parameters

ParameterType
props{ className: string; title: string; isSelected: boolean; isDisabled: boolean; icon: ComponentType<{ className: string; }>; onClick: () => void; }
props.className?string
props.titlestring
props.isSelectedboolean
props.isDisabled?boolean
props.iconComponentType<{ className: string; }>
props.onClick() => void

Returns

ReactNode | Promise<ReactNode>