20 lines
494 B
TypeScript
20 lines
494 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import Component from "./ShopByVehicle";
|
|
|
|
const meta: Meta<typeof Component> = {
|
|
title: "Components/ShopByVehicle",
|
|
component: Component,
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof Component>;
|
|
|
|
export const Default: Story = {
|
|
render: (args) => <Component {...args} />,
|
|
args: {
|
|
initial: { year: "2023", make: "Ford", model: "F-150", trim: "Lariat" },
|
|
onSearch: (sel: any) => console.log("Search", sel),
|
|
},
|
|
};
|