- 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
Date Picker
A date picker component.
<april:date-picker class="w-96" mode="single" x-teleport="body" />
<april:date-picker class="w-96" mode="single" x-teleport="body" />
The date picker is built using the calendar component. Use mode, required, and value to configure it. Use name, from-name, and to-name for form field names. Other attributes are applied to the date-picker root and are not duplicated on its hidden inputs.
The calendar stays in the component flow by default. Use x-teleport="body" when it must escape an overflow or
stacking context.
When in range mode, the names of the from/to hidden inputs are made by concatenating the name attribute with ['from']/['to']. For example, if the name is example, the input names are example['from'] and example['to'].
You can override the default names of the from, and 'to' attribute by including the from-name and to-name respectively
Publishing Views
Use the following command to publish this view:
php artisan april:publish date-picker
php artisan april:publish date-picker
php artisan april:publish --all
php artisan april:publish --all