Skip to content

Commit

Permalink
Feat #6740: Add content prop to Menubar component (#6742)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w authored Jun 11, 2024
1 parent e978ce1 commit ccb784a
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit ccb784a

Please sign in to comment.