mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
* Add a new textarea component which autoexpands depending on number of content rows. * Use the new ExpandingTextArea in the AIAssistantPanel. * Remove old unused text area. * Move around some of the props in the ExpandingTextArea. * Make the value prop mandatory. * Fix minor stuff in the Design System app. * Add examples for Expanding Text Area. * add max height to the expanding text area. * Add todo comment in database-new app.
26 lines
414 B
Plaintext
26 lines
414 B
Plaintext
---
|
|
title: Expanding Textarea
|
|
description: Displays a textarea which autoexpands (or shrinks) based on its content.
|
|
component: true
|
|
source:
|
|
shadcn: true
|
|
---
|
|
|
|
<ComponentPreview name="expanding-textarea-demo" peekCode wide />
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { ExpandingTextArea } from 'ui'
|
|
```
|
|
|
|
```tsx
|
|
<ExpandingTextArea />
|
|
```
|
|
|
|
## Examples
|
|
|
|
### Default
|
|
|
|
<ComponentPreview name="expanding-textarea-demo" peekCode wide />
|