fleet/frontend/components/SQLEditor/SQLEditor.stories.tsx
jacobshandling 459b725667
UI - Update name (#25873)
## QOL Improvement

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2025-01-31 10:37:56 -08:00

34 lines
709 B
TypeScript

import React from "react";
import { Meta, StoryObj } from "@storybook/react";
import { noop } from "lodash";
import SQLEditor from ".";
import "../../index.scss";
const meta: Meta<typeof SQLEditor> = {
component: SQLEditor,
title: "Components/SQLEditor",
args: {
label: "Type some SQL here...",
value: "SELECT 1 FROM TABLE_NAME;",
readOnly: false,
showGutter: false,
wrapEnabled: false,
fontSize: 16,
name: "",
error: "",
wrapperClassName: "",
helpText: "",
labelActionComponent: <></>,
onLoad: noop,
onChange: noop,
handleSubmit: noop,
},
};
export default meta;
type Story = StoryObj<typeof SQLEditor>;
export const Default: Story = {};