krystal-sf/ux-extras

Extra UX Components for Krystal Symfony Projects

Maintainers

Package info

gitlab.com/krystal-sf/ux-extras

Homepage

Issues

Type:symfony-bundle

pkg:composer/krystal-sf/ux-extras

Transparency log

Statistics

Installs: 1 374

Dependents: 1

Suggesters: 0

Stars: 0

1.0.x-dev 2026-08-05 09:30 UTC

This package is auto-updated.

Last update: 2026-08-05 09:30:14 UTC


README

Extra UX components for Krystal Symfony Projects: copy-to-clipboard components & datatables column.

PHP Version Symfony

Installation

composer require krystal-sf/ux-extras

Enable the bundle in config/bundles.php:

return [
    // ...
    Ksf\Plugins\Extras\KsfExtrasBundle::class => ['all' => true],
];

Copy to Clipboard

Two Twig Components, both powered by the KsfUxJsCopy Stimulus controller (vanilla JS, Bootstrap 5 tooltip feedback):

{# Copy the wrapped text on click #}
<twig:Ksf:Copy :text="apiKey" />

{# Standalone copy button #}
<twig:Ksf:CopyButton :text="apiKey" />

Datatables Column

When krystal-sf/ux-datatables is installed (suggested dependency), the StringWithCopyColumn renders a value with its copy button:

$datatable->add('token', StringWithCopyColumn::class, array(
    'copy_title' => 'Copy token',
));

The column services load only if the Datatables bundle is present.

Testing

make up          # boot the docker stack
make phpunit     # run the test suite
make quality     # lint + style + phpstan

License

MIT — see LICENSE.