laravel-view-components/forms
Composer 安装命令:
composer require laravel-view-components/forms
包简介
Laravel 7.x form view components
README 文档
README
A Laravel View Components package built on the Tabler UI Kit - a free and open-source HTML Dashboard UI Kit built on Bootstrap.
Goal
The goal of this package is to provide a list of easy to use form inputs as View Components in Blade to mimic the HTML package from LaravelCollective while also building on the Tabler UI Kit. All the form elements listed on the Tabler Docs should eventually be available here.
Install
- Install a fresh copy of Laravel 7.x or above.
- Install this package via
composer require laravel-view-components/forms. Laravel 7.x will automatically discover this package. No need to register the service provider. - Install the Tabler UI Preset.
- Run
npm install && npm run devto build the frontend
Usage
If you are not familiar with Laravel 7.x View Components, please see the Laravel Docs for details.
There are some common component attributes notated below. Specific components may have additional attributes detailed below.
The following Tabler UI components are available in this package.
Form Text component
<x-form-text name="example-text-input" label="Text" placeholder="Input placeholder"/>
<div class="form-group"> <label for="example-text-input" class="form-label">Text</label> <input name="example-text-input" type="text" class="form-control " placeholder="Input placeholder" autocomplete="off"> </div>
Form Password component
<x-form-password name="example-password-input" label="Pasword" placeholder="Input placeholder"/>
<div class="form-group"> <label for="example-password-input" class="form-label">Pasword</label> <input name="example-password-input" type="password" class="form-control " placeholder="Input placeholder" autocomplete="off"> </div>
Form Checkbox component
<x-form-checkbox />
Form Color component
<x-form-color />
Form Email component
<x-form-email />
Form File component
<x-form-file />
Form Number component
<x-form-number />
Form Phone component
<x-form-phone />
Form Radio component
<x-form-radio />
Form Search component
<x-form-search />
Form Select component
<x-form-select />
Form Image Select component
<x-form-select.images />
Form Tag Select component
<x-form-select.tags />
Form User Select component
<x-form-select.users />
Form Toggle component
<x-form-toggle />
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-02

