and-design-components-library
Version:
Library of reusable React components based on AND Digital design system.
38 lines (37 loc) • 823 B
TypeScript
import { SVGProps } from 'react';
export interface StyledIconProps extends SVGProps<SVGSVGElement> {
/**
* Accepts a subset of AND Digital brand colors.
* @default 'charcoal'
*/
color?: string;
rotateDegree?: number;
}
export interface IconProps {
/**
* Name of the icon
*/
name: string;
/**
* Width of the SVG icon
*/
width?: number;
/**
* Height of the SVG icon
* @default 24
*/
height?: string | number;
/**
* Accepts a subset of AND Digital brand colors.
* @default 'charcoal'
*/
color?: string;
/**
* Degree of rotation of the icon e.g. 180
*/
rotateDegree?: number;
/**
* Degree of rotation of the icon e.g. 180
*/
viewBox?: string;
}