carbon-components-svelte/types/UIShell/SideNavMenuItem.svelte.d.ts
2023-07-19 08:37:54 -07:00

38 lines
781 B
TypeScript

import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
export interface SideNavMenuItemProps extends RestProps {
/**
* Set to `true` to select the item
* @default false
*/
isSelected?: boolean;
/**
* Specify the `href` attribute
* @default undefined
*/
href?: string;
/**
* Specify the item text
* @default undefined
*/
text?: string;
/**
* Obtain a reference to the HTML anchor element
* @default null
*/
ref?: null | HTMLAnchorElement;
[key: `data-${string}`]: any;
}
export default class SideNavMenuItem extends SvelteComponentTyped<
SideNavMenuItemProps,
{ click: WindowEventMap["click"] },
{ default: {} }
> {}