mirror of
https://github.com/fleetdm/fleet
synced 2026-05-03 21:38:24 +00:00
27 lines
575 B
TypeScript
27 lines
575 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import LinkWithContext from "./LinkWithContext";
|
|
|
|
const meta: Meta<typeof LinkWithContext> = {
|
|
title: "Components/LinkWithContext",
|
|
component: LinkWithContext,
|
|
args: {
|
|
className: "link-with-context",
|
|
children: "Link with context",
|
|
to: "/",
|
|
withParams: {
|
|
type: "query",
|
|
names: ["apples", "bananas"],
|
|
},
|
|
currentQueryParams: {
|
|
apples: "1",
|
|
bananas: "2",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof LinkWithContext>;
|
|
|
|
export const Basic: Story = {};
|