Download the PHP package pod-point/form-components without Composer
On this page you can find all versions of the php package pod-point/form-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package form-components
Form Components
Commonly used form components to make it easier and more flexible to create forms in Blade views.
It is intended to be usable by anyone.
For ease of use by Pod Point staff, when classes are not specified they default to those used in the Pod Point UI toolkit.
Editing
To edit this project, clone the repository:
Install the PHP dependencies:
Laravel installation
More commonly, you'll want to import these components for use in Laravel applications (or other frameworks that use Blade).
To install it using Composer, require the package:
Then in Laravel, include the service provider in your config/app.php
file:
Usage
You can insert components into Blade views using the form::
package prefix.
Examples
Button
Checkbox
File upload
Text/password input
Radio button(s)
Select dropdown
Textarea
Grouped typeahead select (Please note this depends on the typeahead JS file)
Attributes
Some key attributes e.g. name
can be set directly (see examples above for each component).
For all components, any additional attributes can be set using the attributes
array. These are optional.
attributes
can take text values where needed, e.g.
or they can take boolean values - if a boolean value is used the attribute will be included if true e.g. <input disabled>
or omitted if false e.g. <input>
Classes
For all components, all classes
are optional.
If an element's class is not specified, it defaults to the appropriate class(es) from the Pod Point UI toolkit - see each component below for details.
If you want an element to have no class set at all, set that element's class to ''
e.g.
All versions of form-components with dependencies
ext-dom Version *
illuminate/view Version ^6.20 || ^7.30 || ^8.83 || ^9.52 || ^10.14