Icon

Renders icons from a provided icon-set which can be customized at runtime.

import React from 'react';
import { Icon } from '@minddrop/ui';
export const IconDemo = () => (
<div style={{ display: 'flex', alignItems: 'center' }}>
<Icon name="settings" color="white" />
</div>
);
export default IconDemo;

Features

  • Allows runtime customization of icons.
  • Five color options.

Import the component from the @minddrop/ui package.

import { Icon } from '@minddrop/ui';
export default () => {
return <Icon name="edit" label="Edit description" />;
};

Renders icons provided by IconProvider;

IconProps extends React.HTMLAttributes<HTMLSvgElement>.

PropTypeDefault
name*stringNo default value
color'current-color' | TextColorcurrent-color