PHP code example of tangodev-it / filament-emoji-picker

1. Go to this page and download the library: Download tangodev-it/filament-emoji-picker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tangodev-it / filament-emoji-picker example snippets


use TangoDevIt\FilamentEmojiPicker\EmojiPickerAction;

TextInput::make('title')
    ->

TextInput::make('title')
    ->tAction(EmojiPickerAction::make('emoji-title')),

TextInput::make('title')
    ->fixAction(EmojiPickerAction::make('emoji-title')),

Textarea::make('messagge')
    ->ction(EmojiPickerAction::make('emoji-messagge')),

TextInput::make('title')
    ->tAction(EmojiPickerAction::make('emoji-title')
        ->icon('paint-brush')
        ->label('Choose an emoji')
    ),

TextInput::make('title')
    ->fixAction(EmojiPickerAction::make('emoji-titolo')
        ->popupPlacement('bottom-start')
        ->popupOffset([-7, 4])
    ),


// config for TangoDevIt/FilamentEmojiPicker
return [
    'locale' => 'it',
    'i18n' => 'https://cdn.jsdelivr.net/npm/[email protected]/i18n/it.js',
    'datasource' => 'https://cdn.jsdelivr.net/npm/[email protected]/it/cldr-native/data.json'
];
bash
php artisan vendor:publish --tag="filament-emoji-picker-config"
bash
php artisan filament-emoji-picker:install