UNPKG

@hashicorp/design-system-components

Version:
26 lines (25 loc) 893 B
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import type HdsIntlService from '../../../../services/hds-intl.ts'; import type { HdsButtonSignature } from '../../button/index'; export interface HdsFormKeyValueInputsDeleteRowButtonSignature { Args: { onClick?: (rowData: unknown, rowIndex: number) => void; onInsert?: () => void; onRemove?: () => void; returnFocusTo?: HTMLFieldSetElement; rowData: unknown; rowIndex: number; text?: HdsButtonSignature['Args']['text']; }; Element: HdsButtonSignature['Element']; } export default class HdsFormKeyValueInputsDeleteRowButton extends Component<HdsFormKeyValueInputsDeleteRowButtonSignature> { readonly hdsIntl: HdsIntlService; private _onInsert; get text(): string; onClick: () => void; }