carbon-components-svelte/types/UIShell/SideNavMenuItem.svelte.d.ts
Enrico Sacchetti 56488e7375
chore: migrate to svelte-4
- Use `SvelteComponent` instead of `SvelteComponentTyped`
- use `local` transitions for backwards-compatibility
2023-07-07 22:24:53 -04:00

35 lines
715 B
TypeScript

/// <reference types="svelte" />
import type { SvelteComponent } from "svelte";
export interface SideNavMenuItemProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
/**
* 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;
}
export default class SideNavMenuItem extends SvelteComponent<
SideNavMenuItemProps,
{ click: WindowEventMap["click"] },
{ default: {} }
> {}