@askrjs/themes/menubar
Exports from the declarations published in @askrjs/themes. Signatures reflect the published artifact.
Exports
This entrypoint publishes 34 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
Menubartype
Menubar: (props: MenubarProps) => JSX.ElementRenders a part of menubar.
MenubarContenttype
MenubarContent: { (props: MenubarContentProps): JSX.Element | null; (props: MenubarContentAsChildProps): JSX.Element | null; }Renders a part of menubar.
MenubarContentAsChildPropstype
MenubarContentAsChildProps: BoxAsChildProps & MenubarContentOwnPropsProps for the asChild (polymorphic) rendering of Menubar Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarContentOwnPropstype
MenubarContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
}Own props for Menubar Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarContentPropstype
MenubarContentProps: BoxProps<'div', HTMLDivElement> & MenubarContentOwnPropsProps for Menubar Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarGrouptype
MenubarGroup: (props: MenubarGroupProps | MenubarGroupAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-group part of menubar with role="group".
Supports polymorphic rendering via asChild.
MenubarGroupAsChildPropstype
MenubarGroupAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Group.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarGroupPropstype
MenubarGroupProps: BoxProps<'div', HTMLDivElement>Props for Menubar Group.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarItemtype
MenubarItem: { (props: MenubarItemProps): JSX.Element | null; (props: MenubarItemAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarItemAsChildPropstype
MenubarItemAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarItemPropstype
MenubarItemProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenubarLabeltype
MenubarLabel: (props: MenubarLabelProps | MenubarLabelAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-label part of menubar.
Supports polymorphic rendering via asChild.
MenubarLabelAsChildPropstype
MenubarLabelAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarLabelPropstype
MenubarLabelProps: BoxProps<'div', HTMLDivElement>Props for Menubar Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarMenutype
MenubarMenu: (props: MenubarMenuProps) => JSX.ElementRenders a part of menubar.
MenubarMenuPropstype
MenubarMenuProps: {
children?: unknown;
/** Stable and unique among sibling menus when menus are rendered dynamically. */
value?: string;
}Props for Menubar Menu.
children- children?: unknown;
value- Stable and unique among sibling menus when menus are rendered dynamically.
MenubarOwnPropstype
MenubarOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
loop?: boolean;
}Own props for Menubar, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
MenubarPortaltype
MenubarPortal: (props: MenubarPortalProps) => JSX.Element | nullRenders a part of menubar.
MenubarPortalPropstype
MenubarPortalProps: {
children?: unknown;
}Props for Menubar Portal.
children- children?: unknown;
MenubarPropstype
MenubarProps: BoxProps<'div', HTMLDivElement> & MenubarOwnPropsProps for Menubar.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
MenubarSeparatortype
MenubarSeparator: (props: MenubarSeparatorProps | MenubarSeparatorAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-separator part of menubar with role="separator".
Supports polymorphic rendering via asChild.
MenubarSeparatorAsChildPropstype
MenubarSeparatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Separator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarSeparatorPropstype
MenubarSeparatorProps: BoxProps<'div', HTMLDivElement>Props for Menubar Separator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarSubtype
MenubarSub: (props: MenubarSubProps) => JSX.ElementRenders a part of menubar.
MenubarSubContenttype
MenubarSubContent: { (props: MenubarSubContentProps): JSX.Element | null; (props: MenubarSubContentAsChildProps): JSX.Element | null; }Renders a part of menubar.
MenubarSubContentAsChildPropstype
MenubarSubContentAsChildProps: BoxAsChildProps & MenubarContentOwnPropsProps for the asChild (polymorphic) rendering of Menubar Sub Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarSubContentPropstype
MenubarSubContentProps: BoxProps<'div', HTMLDivElement> & MenubarContentOwnPropsProps for Menubar Sub Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarSubPropstype
MenubarSubProps: {
children?: unknown;
value?: string;
}Props for Menubar Sub.
children- children?: unknown;
value- value?: string | undefined;
MenubarSubTriggertype
MenubarSubTrigger: { (props: MenubarSubTriggerProps): JSX.Element | null; (props: MenubarSubTriggerAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarSubTriggerAsChildPropstype
MenubarSubTriggerAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Sub Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarSubTriggerPropstype
MenubarSubTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Sub Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenubarTriggertype
MenubarTrigger: { (props: MenubarTriggerProps): JSX.Element | null; (props: MenubarTriggerAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarTriggerAsChildPropstype
MenubarTriggerAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarTriggerPropstype
MenubarTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;