@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
22 lines (21 loc) • 1.07 kB
TypeScript
import { HTMLAttributes, Ref } from 'react';
import { TAriaLive, TProgressbarRole, TProgressbarSkin, TProgressbarStatusPlacement, TProgressbarStatusType, TProgressbarTitlePosition } from '../../shared-types';
export type { TProgressbarRole, TProgressbarSkin, TProgressbarStatusPlacement, TProgressbarStatusType, TProgressbarTitlePosition };
export interface IPktProgressbar extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'title'> {
ariaLabel?: string | null;
ariaLabelledby?: string | null;
ariaLive?: TAriaLive;
ariaValueText?: string | null;
id?: string;
role?: TProgressbarRole;
skin?: TProgressbarSkin;
statusPlacement?: TProgressbarStatusPlacement;
statusType?: TProgressbarStatusType;
title?: string | null;
titlePosition?: TProgressbarTitlePosition;
valueCurrent: number;
valueMax?: number;
valueMin?: number;
ref?: Ref<HTMLDivElement>;
}
export declare const PktProgressbar: import('react').ForwardRefExoticComponent<Omit<IPktProgressbar, "ref"> & import('react').RefAttributes<HTMLDivElement>>;