Getting Started
Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Avatar
- Badge
- Banner
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Command
- Collapsible
- Combobox
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Editor
- Input
- Input Group
- Label
- Loading Spinner
- Native Select
- Popover
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Steps
- Switch
- Tabs
- Textarea
- Tooltip
Patterns
Textarea
Displays a form textarea or a component that looks like a textarea.
Component Code
<april:textarea name="message" placeholder="Type your message here." class="w-full">This message is ready to edit.</april:textarea>
Component Code
<april:textarea name="message" placeholder="Type your message here." class="w-full">This message is ready to edit.</april:textarea>
Set an initial value
Place the initial value inside the component. A textarea reads its value from its content.
<april:textarea name="description">{{ old('description', $description) }}</april:textarea>
<april:textarea name="description">{{ old('description', $description) }}</april:textarea>
Keep the value next to the opening and closing tags to avoid adding whitespace.
Use escaped Blade output for user content. An empty component still works with wire:model.
Publishing Views
Use the following command to publish this view:
php artisan april:publish textarea
php artisan april:publish textarea
php artisan april:publish --all
php artisan april:publish --all