- How do I install Corepine Emoji in a Laravel app?
- Install the package with Composer by running composer require corepine/emoji. Then use the Blade components in your Laravel views. If you are not compiling the package CSS through your app, render x-corepine.emoji.styles once in your layout.
- How do I add an emoji picker to a textarea?
- Give the textarea an id, such as message, then place the x-corepine.emoji component with target="message" near it. The target attribute connects the picker to the field. Use the slot version if you want a custom trigger button.
- Can I use my own button to open the emoji picker?
- Yes. Wrap the picker component around a button, for example x-corepine.emoji target="message" with a button type="button" inside it. The slot content becomes the trigger for the picker.
- Does Corepine Emoji work with Livewire?
- Yes, Corepine Emoji is built for Livewire-friendly interfaces. It ships message and comment pickers plus a reaction picker that work cleanly with Livewire-powered UIs. You can use the Blade components in views rendered by Livewire components.
- How do I add a reaction picker to my Laravel app?
- Use the x-corepine.emoji.reaction Blade component in your view. You can customize quick reactions through the Emoji facade method quickReactions. The reaction storage key is available through Emoji::reactionStorageKey.
- How do I style the Corepine Emoji picker?
- If you are not compiling the package CSS through your app, render x-corepine.emoji.styles once in your layout. If your build already includes the package CSS, you can skip that step.
- How do I configure the emoji theme, columns, or categories?
- Use the Corepine\Emoji\Facades\Emoji facade methods theme, columns, and categories. You can also type-hint Corepine\Emoji\Emoji from another Laravel package when you need the active Emoji config values.
- How do I listen for selected emoji or reaction events?
- The package API exposes Emoji::event()->selected() and Emoji::event()->reactionSelected() through the facade. Use these helpers when wiring selected emoji or reactions into your frontend.
- What Laravel versions does Corepine Emoji support?
- The README excerpt does not list a minimum or maximum Laravel version. Check the package composer.json requirements before installing to confirm compatibility with your Laravel version.
- Is Corepine Emoji free to use, and where can I find more documentation?
- Yes, Corepine Emoji is open-sourced under the MIT license. The README points to corepine.dev for more information. You can also check the GitHub repository for current package details.