@rhds/elements
Version:
Red Hat Design System Elements
34 lines (33 loc) • 1.01 kB
TypeScript
import { LitElement, type TemplateResult } from 'lit';
/**
* Menu Dropdown Item
* @alias Menu Dropdown Item
*/
export declare class RhMenuItem extends LitElement {
#private;
static readonly styles: CSSStyleSheet[];
/**
* Whether the menu item is disabled.
* Disabled items are not interactive and are visually indicated as such.
*/
disabled: boolean;
/**
* Specifies the destination URL for the menu item.
* If specified, the menu item behaves as a hyperlink.
*/
href: string;
/**
* Whether the link should open externally.
* When true, the link opens in a new browser tab or window
* and includes appropriate security attributes (`target="_blank"` and `rel="noopener noreferrer"`).
*/
external: boolean;
static readonly shadowRootOptions: ShadowRootInit;
connectedCallback(): void;
render(): TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'rh-menu-item': RhMenuItem;
}
}