Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat #6740: Add content prop to Menubar component #6742

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/lib/menubar/menubar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export interface MenubarPassThroughOptions {
* Uses to pass attributes to the list item's DOM element.
*/
menuitem?: MenubarPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
/**
* Uses to pass attributes to the content's DOM element.
*/
content?: MenubarPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the action's DOM element.
*/
Expand Down Expand Up @@ -139,16 +143,19 @@ export interface MenubarProps extends Omit<React.DetailedHTMLProps<React.HTMLAtt
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/
ariaLabelledBy?: string | undefined;

/**
* Callback to invoke when menu receives focus.
* @param {React.SyntheticEvent} event - Browser event.
*/
onFocus?(event: React.SyntheticEvent): void;

/**
* Callback to invoke when menu loses focus.
* @param {React.SyntheticEvent} event - Browser event.
*/
onBlur?(event: React.SyntheticEvent): void;

/**
* The template of trailing element.
*/
Expand Down Expand Up @@ -192,11 +199,13 @@ export declare class Menubar extends React.Component<MenubarProps, any> {
* @return {HTMLDivElement} Container element
*/
public getElement(): HTMLDivElement;

/**
* Used to get root menu element.
* @return {HTMLElement} Root menu element
*/
public getRootMenu(): HTMLElement;

/**
* Used to get menu button element.
* @return {HTMLElement} Menu button element
Expand Down
Loading