// // Copyright 2026 DXOS.org // import '../../theme/index.css'; import { type Meta, type StoryObj } from '@storybook/react-vite'; import React from 'react'; import { expect, userEvent, waitFor, within } from 'storybook/test'; import { SIZES } from '../../sizes.ts'; import { GEOMETRY, byTestId, expectScoped, sizeRow } from '../../testing/geometry.ts'; import { withLayout, withTheme } from '../../testing/index.ts'; import { SIZE_ARG_TYPES, type SizeArgs, withSizes } from '../../testing/stories.tsx'; import * as Field from '../Field/Field.tsx'; import { Input } from '../Input/Input.tsx'; import { Textarea } from './Textarea.tsx'; type StoryArgs = SizeArgs & { /** Grow the Notes textarea with its content. */ autoResize?: boolean; }; const DefaultStory = ({ size, autoResize }: StoryArgs) => ( <> Title Notes