mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Adding UrlIcon component to Storybook (#12285)
This commit is contained in:
parent
3b5e33bc4c
commit
78b7f32d97
27
ui/components/ui/url-icon/url-icon.stories.js
Normal file
27
ui/components/ui/url-icon/url-icon.stories.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { text } from '@storybook/addon-knobs';
|
||||||
|
import UrlIcon from './url-icon';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'UrlIcon',
|
||||||
|
id: __filename,
|
||||||
|
};
|
||||||
|
|
||||||
|
export const AST = () => {
|
||||||
|
return <UrlIcon name="AST" url="AST.png" />;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const BAT = () => {
|
||||||
|
return <UrlIcon name="BAT" url="BAT_icon.svg" />;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const CustomProps = () => {
|
||||||
|
return (
|
||||||
|
<UrlIcon
|
||||||
|
name={text('Symbol', '')}
|
||||||
|
url={text('Icon URL', '')}
|
||||||
|
className={text('className', '')}
|
||||||
|
fallbackClassName={text('fallbackClassName', '')}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user