@types/carbon__icon-helpers
TypeScript icon, indicating that this package has built-in type declarations

10.7.4 • Public • Published

Installation

npm install --save @types/carbon__icon-helpers

Summary

This package contains type definitions for @carbon/icon-helpers (https://github.com/carbon-design-system/carbon/blob/master/packages/icon-helpers).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/carbon__icon-helpers.

index.d.ts

export const defaultAttributes: {
    focusable: string;
    preserveAspectRatio: string;
};

export function getAttributes({
    width,
    height,
    viewBox,
    ...attributes
}?: {
    width?: number | undefined;
    height?: number | undefined;
    viewBox?: string | undefined;
    tabindex?: number | string | undefined;
    title?: string | undefined;
    role?: string | undefined;
}): {
    width: number;
    height: number;
    viewBox: string;
    title?: string | undefined;
    role?: string | undefined;
    focusable: string;
    preserveAspectRatio: string;
};

export function toString(descriptor: any): string;
export function formatAttributes(attrs: any): string;
export function toSVG(descriptor: any): SVGSVGElement;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Eric Liu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/carbon__icon-helpers

Weekly Downloads

837

Version

10.7.4

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • types