fleet/frontend/components/ListItem/ListItem.stories.tsx
Gabriel Hernandez da20214938
Create new ListItem and FileUploader component and use on controls page (#15103)
This adds a new ListItem component and FileUploader component and
updates the Custom settings and scripts page to use this new ListItem
component.

This List component centralises where the markup and styles live. We
still need to update the bootstrap list item and eula upload list item
but will do that in the future.

- [x] Manual QA for all new/changed functionality
2023-11-13 15:30:22 -08:00

35 lines
689 B
TypeScript

import React from "react";
import { Meta, StoryObj } from "@storybook/react";
import Button from "components/buttons/Button";
import ListItem from "./ListItem";
const meta: Meta<typeof ListItem> = {
title: "Components/ListItem",
component: ListItem,
args: {
graphic: "file-configuration-profile",
title: "List Item Title",
details: (
<>
<span>Details </span>
<span> &bull; </span>
<span> more details</span>
</>
),
actions: (
<>
<Button>button 1</Button>
<Button>Button 2</Button>
</>
),
},
};
export default meta;
type Story = StoryObj<typeof ListItem>;
export const Basic: Story = {};