mirror of
https://github.com/detleph/components.git
synced 2026-09-08 16:06:15 +02:00
Add tile component
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import { withRouter } from "storybook-addon-react-router-v6";
|
||||
// @ts-ignore
|
||||
import { ReactComponent as Icon } from "../assets/search.svg";
|
||||
|
||||
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
||||
|
||||
import Tile from "../components/tile";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
export default { title: "Tile", component: Tile, decorators: [withRouter] } as ComponentMeta<typeof Tile>;
|
||||
|
||||
const Template: ComponentStory<typeof Tile> = (args) => <Tile {...args} />;
|
||||
|
||||
export const defaultTile = Template.bind({});
|
||||
|
||||
defaultTile.args = {
|
||||
icon: Icon,
|
||||
};
|
||||
Reference in New Issue
Block a user