@doyosi/laraisy
v1.0.16
Published
Missing Laravel / Tailwind v4.1 & Daisy UI 5.1.14 Javascript Plugins
Maintainers
Readme
@doyosi/laraisy
Missing Laravel / Tailwind v4.1 & Daisy UI 5.1.14 Javascript Plugins for interactive UI components.
Installation
npm install @doyosi/laraisyOr clone the repository:
git clone https://github.com/Doyosi/Laraisy.gitUsage
Import the components you need:
import { DSForm, DSAvatar, DSAlert } from '@doyosi/laraisy';
// Initialize DSForm
const form = new DSForm({
form: '#my-form',
onSuccess: (response) => {
console.log('Success!', response);
}
});
// Use DSAlert
DSAlert.fire('Hello World!', 'This is a success message', 'success');Components
- DSAlert: SweetAlert2-like toast and modal system.
- DSAvatar: Avatar file upload with preview and reset. (See code for usage)
- DSButtonForm: Standalone button handler for AJAX actions with loading states.
- DSForm: Robust AJAX form handler with validation display.
- DSDelete: Deletion confirmation and handling.
- DSSelect: Advanced select/dropdown component.
- DSSelectBox: Dual-list selector for transferring items.
- DSNotifications: Notification drawer management.
- DSUpload: File uploader with drag-and-drop. (Docs pending)
- DSGridOrTable: flexible data display (Table/Grid).
- DSTable: Data tables with sorting, filtering, and pagination.
- DSTabs: Tab switching management.
- DSRestore: Restore actions handling.
- DSSimpleSlider: Carousel/Slider component.
- CodeInput: Multi-input verification code handler.
- DSLogout: Secure AJAX logout handler.
- DSSvgFetch: Inline SVG injector.
- DSSvgUpload: SVG icon uploader.
Dependencies
- tippy.js (Optional/Peer): Used by
DSAvatarfor tooltips. Ensurewindow.tippyis available or installtippy.js. - axios (Optional/Peer): Used for AJAX requests. Falls back to
fetchif not available.
License
MIT
