kachnitel/components-bundle

A Symfony bundle for reusable Twig components

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:symfony-bundle

pkg:composer/kachnitel/components-bundle

dev-main 2026-01-29 23:56 UTC

This package is auto-updated.

Last update: 2026-01-29 23:56:45 UTC


README

A Symfony bundle providing reusable Twig and Live Components for common UI patterns.

Installation

composer require kachnitel/components-bundle

Quick Start

Calendar

Display a monthly calendar with custom content for each day:

<twig:K:Components:Calendar year="2024" month="1">
  <twig:block name="dayContent">
    {{ date }} - Your content here
  </twig:block>
</twig:K:Components:Calendar>

Dialog

Create modal dialogs with a trigger button:

<twig:K:Components:DialogTrigger dialogId="my-dialog" label="Open" />

<twig:K:Components:Dialog id="my-dialog" label="My Dialog">
  Dialog content here
</twig:K:Components:Dialog>

Timer (Live Component)

Display a running timer that updates every second:

<twig:K:Components:Timer :startTime="timeEntry.startTime" />

LiveEmitTrigger (Live Component)

Emit events to other Live Components:

<twig:K:Components:LiveEmitTrigger target="MyApp:MyComponent" action="save" />

Documentation

See the full documentation for detailed usage and options.

Available Components

Component Type Description
Calendar Twig Monthly calendar grid with customizable day content
Dialog Twig Native HTML dialog wrapper with Stimulus controller
DialogTrigger Twig Button to open a Dialog component
Timer Live Auto-updating duration timer
LiveEmitTrigger Live Button to emit events to Live Components

License

MIT