UNPKG

@tiller-ds/icons

Version:

Icons module of Tiller Design System

30 lines (29 loc) 1.06 kB
/// <reference types="react" /> declare type LoadingIconProps = { /** * Determines the width and height of the loading icon. * Defaults to 5. */ size?: number; /** * Custom classes for the svg icon. * Overrides conflicting default styles, if any. * * The provided `className` is processed using `tailwind-merge` to eliminate redundant or conflicting Tailwind classes. */ className?: string; /** * A unique identifier for testing purposes. * This identifier can be used in testing frameworks like Jest or Cypress to locate specific elements for testing. * It helps ensure that UI components are behaving as expected across different scenarios. * @type {string} * @example * // Usage: * <MyComponent data-testid="my-component" /> * // In tests: * getByTestId('my-component'); */ "data-testid"?: string; }; export default function LoadingIcon({ size, className, ...props }: LoadingIconProps): JSX.Element; export {};