@askrjs/ui/menubar
Exports from the declarations published in @askrjs/ui. Signatures reflect the published artifact.
Exports
This entrypoint publishes 36 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`.
MENUBAR_A11Y_CONTRACTtype
MENUBAR_A11Y_CONTRACT: { readonly ROOT_ROLE: "menubar"; readonly CONTENT_ROLE: "menu"; readonly ITEM_ROLE: "menuitem"; readonly EXPANDED_ATTRIBUTE: "aria-expanded"; readonly HAS_POPUP_ATTRIBUTE: "aria-haspopup"; readonly DATA_ATTRIBUTES: { readonly slot: "data-slot"; readonly state: "data-state"; readonly disabled: "data-disabled"; readonly side: "data-side"; readonly align: "data-align"; }; }WAI-ARIA menubar contract.
MenubarA11yContracttype
MenubarA11yContract: typeof MENUBAR_A11Y_CONTRACTType of the Menubar A11y Contract object.
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) => 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) => 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) => 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;