Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saadj55/filament-copyable

Copyable Text Column and Field for Filament PHP.
https://github.com/saadj55/filament-copyable

columns filamentphp laravel livewire php

Last synced: 26 days ago
JSON representation

Copyable Text Column and Field for Filament PHP.

Awesome Lists containing this project

README

        

# Filament Copyable

Copyable Text Column and Field for Filament PHP.

![Screenshot of Login](./filament-copyable-column.PNG)
![Screenshot of Login](./copyable-text-field.PNG)

## Installation

You can install the package via composer:

```bash
composer require saadj55/filament-copyable
```
## Usage
### Column
In in your Table Schema:

```php

\Saadj55\FilamentCopyable\Tables\Columns\CopyableTextColumn::make('name')

```
You can make the icon to only appear on hover with the `->showOnHover()` method,

You can set a custom [heroicon](https://heroicons.com/) by using the `->icon('heroicon-o-duplicate')` method.

### Field

```php

\Saadj55\FilamentCopyable\Forms\Components\CopyableTextInput::make('name')

```
## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.