UNPKG

@hashicorp/design-system-components

Version:
34 lines (33 loc) 1.24 kB
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import type HdsIntlService from '../../../../services/hds-intl'; import type { HdsIconSignature } from '../../icon/index.ts'; import type { HdsInteractiveSignature } from '../../interactive/index'; import type { HdsPaginationDirections } from '../types.ts'; interface HdsPaginationControlArrowContent { label: string; icon: HdsIconSignature['Args']['name']; ariaLabel: string; } interface HdsPaginationControlArrowArgs { direction: HdsPaginationDirections; disabled?: boolean; showLabel?: boolean; onClick?: (direction: HdsPaginationDirections) => void; } export interface HdsPaginationControlArrowSignature { Args: HdsPaginationControlArrowArgs & HdsInteractiveSignature['Args']; Element: HdsInteractiveSignature['Element']; } export declare const DIRECTIONS: HdsPaginationDirections[]; export default class HdsPaginationControlArrow extends Component<HdsPaginationControlArrowSignature> { readonly hdsIntl: HdsIntlService; get content(): HdsPaginationControlArrowContent; get showLabel(): boolean; get classNames(): string; onClick: () => void; } export {};