Skip to content

React Components & Types ​

All frontend assets are published to your application via php artisan vendor:publish --tag=crud-assets (or php artisan crud:install) so you fully own and customize them.

Published Components (resources/js/components/crud/) ​

FileExport(s)Purpose
ResourceIndex.tsxdefault (ResourceIndex)Full config-driven index with KPI stats, search, filters, SoftDeletes trash controls, custom actions, inline toggles, modal/drawer forms, CSV export, and background import polling
ResourceForm.tsxdefault (ResourceForm)Config-driven create/edit form supporting standalone pages, embedded modal/drawer mode, card sections, 2-column grid, conditional visibility, and concurrent uploads
ResourceShow.tsxdefault (ResourceShow)Config-driven detail view with grouped section cards, formatted field rendering, Edit/Delete header actions, and fieldOverrides
FormField.tsxFormField, evaluateVisibleWhen, formatDateInput, formatDateTimeLocal, slugifyTextRenders all 22 field types including image/file preview & remove, async select, slug, tags, radio, color, key-value, zero-dependency rich-text, repeater, and chunked-file
ChunkedFileInput.tsxdefault (ChunkedFileInput)Drag-and-drop chunked uploader with retry logic, progress bar, cancel cleanup, and edit-mode preview
DataTable.tsxDataTablePaginated shadcn/ui table with localStorage-persisted column visibility toggle, per-page selector, and First/Prev/Next/Last controls
FilterBar.tsxFilterBarDebounced search, SoftDeletes trashed selector, select/faceted multi-select, boolean, text, date, and date-range filters
FileImport.tsxFileImportStandard & chunked CSV uploader with sample template link, live background polling progress, error sample preview, and failed-row CSV download
BulkActions.tsxBulkActionsSelection count bar with bulk delete, restore, force-delete, export, and declarative custom bulk actions
icon-map.tscrudIconMap, resolveLucideIconShared string-to-LucideIcon resolver for stats and custom actions
DataTableFacetedFilter.tsxDataTableFacetedFilterSearchable multi-select dropdown filter
DatePicker.tsx / DatePickerWithRange.tsxDatePicker, DatePickerWithRangereact-day-picker v9/v10 compatible date pickers
PageHeader.tsx, ExportButton.tsx, ConfirmDialog.tsx, StatusBadge.tsx, StatCard.tsxNamed exportsReusable dashboard building blocks
types.tsShared TypeScript interfacesResourceMeta, ResourceRoutes, ResourceIndexProps, ResourceFormProps, ResourceShowProps, ShowFieldConfig, StatItem, CustomActionConfig, ImportProgressState, ColumnConfig, FilterConfig, FieldConfig, VisibleWhenRule, FormSectionConfig, ChunkedUploadedFile, ExistingFile, CrudBreadcrumbItem, PaginatedData
index.tsBarrel re-exportsRe-exports all components, helpers, and types from @/components/crud

Barrel Import Example ​

tsx
import {
    ResourceIndex,
    ResourceForm,
    ResourceShow,
    ChunkedFileInput,
    type ResourceIndexProps,
    type ResourceFormProps,
    type ResourceShowProps,
} from '@/components/crud';

Released under the MIT License.