laravel-view-components/forms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Install a fresh copy of Laravel 7.x or above.
  2. 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.
  3. Install the Tabler UI Preset.
  4. Run npm install && npm run dev to 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.

  • name - The HTML name attribute.
  • label - An HTML label element tied to the input item.

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"/>

form-text

<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"/>

form-password

<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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固