feat(renderer): add shadcn textarea primitive

This commit is contained in:
2026-06-05 17:09:59 +05:30
parent 66e2b56221
commit d8ee743fb1
2 changed files with 36 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/react';
import { Textarea } from '@/components/ui/textarea';
describe('Textarea', () => {
it('renders a multi-line input', () => {
render(<Textarea aria-label="notes" defaultValue="hello" />);
const ta = screen.getByLabelText(/notes/i);
expect(ta.tagName).toBe('TEXTAREA');
expect(ta).toHaveValue('hello');
});
});