mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
24 lines
608 B
TypeScript
24 lines
608 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
import Textarea from ".";
|
|
import "../../index.scss";
|
|
|
|
const meta: Meta<typeof Textarea> = {
|
|
component: Textarea,
|
|
title: "Components/Textarea",
|
|
args: {
|
|
children: "Default textarea content",
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof Textarea>;
|
|
|
|
export const ExampleWithLabelAndCodeVariant: Story = {
|
|
args: {
|
|
variant: "code",
|
|
label: "Textarea label:",
|
|
children:
|
|
"const example = 'This is code styled text';\n// With line breaks preserved.\n\n Text with\r\ncarriage returns\r\nconverted to\nline breaks",
|
|
},
|
|
};
|