jdvorak23 / bootstrap5-form-renderer
Bootstrap5 form renderer for Nette
Installs: 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jdvorak23/bootstrap5-form-renderer
Requires
- php: >=8.0
- nette/forms: ^3.1
This package is auto-updated.
Last update: 2025-11-04 18:44:38 UTC
README
Form renderer for Nette Forms, wrappers are pre-prepared for Bootstrap5. Nice forms could be done with less than one line of code per one control!
Installation
composer require jdvorak23/bootstrap5-form-renderer
Requirements
"php": ">=8.0",
"nette/forms": "^3.1"
Wiki
A lot of information and reference in the wiki.
Tutorials
There is a web with example forms and tutorials. You can download the whole web and instantly play with examples.
Changelog 0.9
- Input group (without floating labels) behavior changed. Label is not by default a part of the input group, but is normally above control. When the label is not set, or the control does not support it (checkbox, button), there is structure defined to fill that space due to layout balancing. This structure is defined in [label][voidLabel] and can be set independently on control by option voidLabel on control. Also it needs to have content, which default is defined in [label][voidLabelContent], and can be set independently on control by oprion voidLabelContent. When you want set label being in the input group, there is constructor parameter to set that for whole form, group option labelsInInputGroup to set it independently for any ControlGroup, and new option on control labelInInputGroup to set it independently on any control. When you want voidLabel on control which have label in input group (to equalize layout with other controls which have label above), there is new option on control, forceVoidLabel. If you set it to true, that voidLabel structure will be pushed to generate. Remember all these features works only when floating labels are off. Even when control does not support floating labels, when floating labels are set on it.
- FormFactory for building forms possibly with design. All parameters in FormFactory::create() must be named