https://github.com/codeschubser/twig-components-bundle
Twig Components bundle for Symfony
https://github.com/codeschubser/twig-components-bundle
codeschubser components reusable reusable-components symfony symfony-bundle twig twig-components
Last synced: 3 months ago
JSON representation
Twig Components bundle for Symfony
- Host: GitHub
- URL: https://github.com/codeschubser/twig-components-bundle
- Owner: codeschubser
- License: mit
- Created: 2025-02-04T07:07:10.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-20T07:32:39.000Z (3 months ago)
- Last Synced: 2025-02-20T08:29:10.983Z (3 months ago)
- Topics: codeschubser, components, reusable, reusable-components, symfony, symfony-bundle, twig, twig-components
- Language: PHP
- Homepage:
- Size: 577 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Twig Components Bundle (experimental)
[](https://github.com/codeschubser/twig-components-bundle/actions/workflows/ci.yml)
[](https://github.com/codeschubser/twig-components-bundle/tags)
[](https://codecov.io/gh/codeschubser/twig-components-bundle)
[](https://github.com/codeschubser/twig-components-bundle/blob/master/LICENSE)> [!WARNING]
> This Bundle is experimental and subject to change in a future release.A Symfony bundle for the [Twig Components](https://symfony.com/bundles/ux-twig-component/current/index.html) library.
This bundle allows you to create robust and reusable Twig components.
## Requirements
- PHP 8.2 or higher
- Symfony 6.4 or higher## Features
All components are [Bootstrap](https://getbootstrap.com/) ready. Recommend version is v5.3 or higher. Some components can be extended with icons. [Bootstrap Icons](https://icons.getbootstrap.com/) and [Font Awesome](https://fontawesome.com/) were tested. But other icons are also possible.
## Accessibility
- Optional icons are hidden from the [accessibility API](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden).
- Alerts are decorated with `role="alert"` to send accessible alert event to assistive technology products.
- Dropdowns are decorated with `aria-expanded` and `aria-current`.
- Icons in components are decorated with `aria-hidden`.## Usage
- [Installation](docs/index.md)
- Components
- [Alert](docs/alert.md) *Provide contextual feedback messages for typical user actions with the handful of available and flexible options.*
- [Button](docs/button.md) *Provide buttons with support for multiple variants, icon, states, and more.*
- [Card](docs/cards.md) *Provide flexible content containers.*
- [Dropdown](docs/dropdown.md) *Toggleable and contextual overlays.*
- Modal *TBD*
- Toast *TBD*## Development
TBD
## License
This bundle is licensed under the [MIT License](LICENSE).