fleet/frontend/components/FleetAce/FleetAce.stories.tsx
Martavis Parker bcfac603f0
Added components to Storybook library (#2768)
* added storybook

* added avatar component

* added button story

* added dropdown button story

* removed unused ellipsis component

* cleaned up modal path

* reorganized enroll secrets table file

* added flash story; removed unused persistent flash

* added fleet ace story

* added checkbox story

* added dropdown story

* added input story

* fixed storybook build

* fixed avatar

* added input with icon story

* added radio button story

* added select targets dropdown story

* added slider story

* added tooltip story

* added info banner story

* removed unused loaders; added spinner story

* added modal story

* removed unused NumberPill

* added pagination story

* lint fixes

* added documentation to run

* modified documentation

* fixed corelayout test

* fixed format for date-fns

* fixed date format that breaks tests

* wait for page
2021-11-06 23:41:09 -07:00

34 lines
751 B
TypeScript

import React from "react";
import { Meta, Story } from "@storybook/react";
import { noop } from "lodash";
import FleetAce from ".";
import { IFleetAceProps } from "./FleetAce";
import "../../index.scss";
export default {
component: FleetAce,
title: "Components/FleetAce",
args: {
label: "Type some SQL here...",
value: "SELECT 1 FROM TABLE_NAME;",
readOnly: false,
showGutter: false,
wrapEnabled: false,
fontSize: 16,
name: "",
error: "",
wrapperClassName: "",
hint: "",
labelActionComponent: <></>,
onLoad: noop,
onChange: noop,
handleSubmit: noop,
},
} as Meta;
const Template: Story<IFleetAceProps> = (props) => <FleetAce {...props} />;
export const Default = Template.bind({});