UNPKG

@hashicorp/design-system-components

Version:
34 lines (33 loc) 1.36 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import { HdsDropdownListItemInteractiveColorValues } from './types.ts'; import type { HdsIconSignature } from '../../icon'; import type { HdsInteractiveSignature } from '../../interactive'; import type { HdsDropdownListItemInteractiveColors } from './types.ts'; import type { ComponentLike } from '@glint/template'; import type { HdsBadgeSignature } from '../../badge/index.ts'; export declare const DEFAULT_COLOR = HdsDropdownListItemInteractiveColorValues.Action; export declare const COLORS: HdsDropdownListItemInteractiveColors[]; export interface HdsDropdownListItemInteractiveSignature { Args: HdsInteractiveSignature['Args'] & { color?: HdsDropdownListItemInteractiveColors; icon?: HdsIconSignature['Args']['name']; isLoading?: boolean; trailingIcon?: HdsIconSignature['Args']['name']; }; Blocks: { default?: [ { Badge?: ComponentLike<HdsBadgeSignature>; } ]; }; Element: HTMLDivElement | HdsInteractiveSignature['Element']; } export default class HdsDropdownListItemInteractive extends Component<HdsDropdownListItemInteractiveSignature> { get color(): HdsDropdownListItemInteractiveColors; get classNames(): string; }