@hashicorp/design-system-components
Version:
Helios Design System Components
34 lines (33 loc) • 1.36 kB
TypeScript
/**
* Copyright IBM Corp. 2021, 2025
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';
import type { WithBoundArgs } from '@glint/template';
import { HdsDropdownListItemInteractiveColorValues } from './types.ts';
import HdsBadge from '../../badge/index';
import type { HdsIconSignature } from '../../icon/index';
import type { HdsInteractiveSignature } from '../../interactive/index';
import type { HdsDropdownListItemInteractiveColors } from './types.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?: WithBoundArgs<typeof HdsBadge, 'size'>;
}
];
};
Element: HTMLDivElement | HdsInteractiveSignature['Element'];
}
export default class HdsDropdownListItemInteractive extends Component<HdsDropdownListItemInteractiveSignature> {
get color(): HdsDropdownListItemInteractiveColors;
get classNames(): string;
}