@askrjs/themes/sidebar
Exports from the declarations published in @askrjs/themes. Signatures reflect the published artifact.
Exports
This entrypoint publishes 24 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
Sidebartype
Sidebar: (props: SidebarProps) => JSX.ElementRoot <aside> sidebar layout with configurable width, side, collapse behavior, and visual variant, exposed as data attributes for CSS.
SidebarButtonPropstype
SidebarButtonProps: JSX.IntrinsicElements["button"] & {
active?: boolean;
asChild?: boolean;
size?: "default" | "sm" | "lg";
tooltip?: string;
tooltipSide?: SidebarTooltipSide;
variant?: "default" | "outline";
}Props shared by the interactive {@link Sidebar } button parts (menu button, action, trigger).
active- active?: boolean | undefined;
asChild- asChild?: boolean | undefined;
size- size?: "default" | "sm" | "lg" | undefined;
tooltip- tooltip?: string | undefined;
tooltipSide- tooltipSide?: SidebarTooltipSide | undefined;
variant- variant?: "default" | "outline" | undefined;
SidebarCollapsibletype
SidebarCollapsible: "offcanvas" | "icon" | "none"How a {@link Sidebar } collapses: fully off-canvas, down to icons only, or not at all.
SidebarContenttype
SidebarContent: (props: SidebarPartProps) => JSX.ElementRenders the scrollable content region of a {@link Sidebar}.
SidebarFootertype
SidebarFooter: (props: SidebarPartProps) => JSX.ElementRenders the footer region of a {@link Sidebar}.
SidebarGrouptype
SidebarGroup: (props: SidebarPartProps) => JSX.ElementGroups related {@link SidebarMenu} items together.
SidebarGroupContenttype
SidebarGroupContent: (props: SidebarPartProps) => JSX.ElementRenders the content region of a {@link SidebarGroup}.
SidebarGroupLabeltype
SidebarGroupLabel: (props: SidebarPartProps) => JSX.ElementRenders the label for a {@link SidebarGroup}.
SidebarHeadertype
SidebarHeader: (props: SidebarPartProps) => JSX.ElementRenders the header region of a {@link Sidebar}.
SidebarInsettype
SidebarInset: (props: SidebarPartProps) => JSX.ElementRenders the <main> content area beside the {@link Sidebar}.
SidebarMenutype
SidebarMenu: (props: SidebarPartProps) => JSX.ElementRenders a <ul> list of {@link SidebarMenuItem}s.
SidebarMenuActiontype
SidebarMenuAction: (props: SidebarButtonProps) => JSX.ElementRenders a secondary action button attached to a {@link SidebarMenuItem}, with an optional tooltip.
SidebarMenuBadgetype
SidebarMenuBadge: (props: SidebarPartProps) => JSX.ElementRenders a status badge attached to a {@link SidebarMenuItem}.
SidebarMenuButtontype
SidebarMenuButton: (props: SidebarButtonProps) => JSX.ElementClickable menu button within a {@link SidebarMenuItem}; supports active/size/variant state and an optional tooltip.
SidebarMenuItemtype
SidebarMenuItem: (props: SidebarPartProps) => JSX.ElementRenders a single <li> entry within a {@link SidebarMenu}.
SidebarPartPropstype
SidebarPartProps: JSX.IntrinsicElements["div"] & {
as?: keyof JSX.IntrinsicElements;
asChild?: boolean;
}Props shared by the generic {@link Sidebar } structural parts (content, header, footer, group, etc.).
as- as?: keyof JSX.IntrinsicElements | undefined;
asChild- asChild?: boolean | undefined;
SidebarPropstype
SidebarProps: Omit<BlockElementProps<"aside">, "as" | "width" | "shrink"> & {
collapsible?: SidebarCollapsible;
side?: SidebarSide;
variant?: SidebarVariant;
width?: BlockElementProps<"aside">["width"];
shrink?: BlockElementProps<"aside">["shrink"];
}Props for the {@link Sidebar } component.
collapsible- collapsible?: SidebarCollapsible | undefined;
shrink- shrink?: ResponsiveValue<number | boolean> | undefined;
side- side?: SidebarSide | undefined;
variant- variant?: SidebarVariant | undefined;
width- width?: ResponsiveValue<BlockSize> | undefined;
SidebarRailtype
SidebarRail: (props: SidebarButtonProps) => JSX.ElementRenders a draggable/clickable rail along the sidebar's edge for resizing or toggling it.
SidebarRailPropstype
SidebarRailProps: SidebarButtonPropsProps for the {@link SidebarRail } component.
active- active?: boolean | undefined;
asChild- asChild?: boolean | undefined;
size- size?: "default" | "sm" | "lg" | undefined;
tooltip- tooltip?: string | undefined;
tooltipSide- tooltipSide?: SidebarTooltipSide | undefined;
variant- variant?: "default" | "outline" | undefined;
SidebarScopetype
SidebarScope: (props: SidebarPartProps) => JSX.ElementScoping wrapper that establishes the sidebar's CSS/context boundary.
SidebarSidetype
SidebarSide: "left" | "right"Which edge of the viewport a {@link Sidebar } is docked to.
SidebarTooltipSidetype
SidebarTooltipSide: "top" | "bottom" | "left" | "right"Side a sidebar button's tooltip is positioned on.
SidebarTriggertype
SidebarTrigger: (props: SidebarButtonProps) => JSX.ElementIcon button that toggles the {@link Sidebar}'s open/collapsed state, with an optional tooltip.
SidebarVarianttype
SidebarVariant: "sidebar" | "floating" | "inset"Visual style of a {@link Sidebar }.