UNPKG

@api.stream/studio-kit

Version:

Client SDK for building studio experiences with API.stream

29 lines (28 loc) 876 B
import React from 'react'; import * as IconMap from './icon-map'; import * as Color from './colors'; export type IconName = keyof typeof IconMap; type Props = { color?: Color.Type; colorWeight?: number; width?: number | string; height?: number | string; className: string; marginLeft?: number; marginTop?: number; marginBottom?: number; marginRight?: number; nudgeUp?: number; nudgeDown?: number; nudgeLeft?: number; nudgeRight?: number; }; declare const SVGWrapper: ({ children, width, height, color, colorWeight, marginLeft, marginTop, marginRight, marginBottom, className, ...props }: Props & { children: JSX.Element; }) => React.JSX.Element; type IconProps = Props & { name: IconName; }; declare const Icon: ({ name, ...props }: IconProps) => React.JSX.Element; export { SVGWrapper, Icon }; export default Icon;