Skip to content

A Laravel Filament component to display countries or languages by flags

License

Notifications You must be signed in to change notification settings

lguichard/filament-flags

Repository files navigation

Filament Flags

Total Downloads

Caution

This branch is Work In Progress and should not be considered production-ready.

For a full list of available flags see the SVG directory.

TODO

  • Form : Select, TextInput (prefix)
  • Entry : IconEntry / ImageEntry
  • Column : IconColumn / SelectColumn
  • SelectInput
  • MultiSelectInput (tags)
  • Documentation

Installation

Install the plugin with Composer:

composer require andromede/filament-flags:"^1.0"

Usage

Form component

To use the flags form:

use Andromede\FilamentFlags\Components\Forms\FlagsInput;

FlagsInput::make('flag')
    >size('small') // small, medium, large

Table column

To use the flags column:

use Andromede\FilamentFlags\Components\Columns\FlagsIconColumn;

FlagsIconColumn::make('flag')
    ->size('small') // small, medium, large

Infolist entry

To use the flags entry:

use Andromede\FilamentFlags\Infolists\Components\FlagsEntry;

FlagsEntry::make('flag')
    ->size('small') // small, medium, large

Blade template

<x-icon name="flag-country-{{ $code }}" />

<x-icon name="flag-language-{{ $code }}" />

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A Laravel Filament component to display countries or languages by flags

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published