承接 dianagung/larawinds 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dianagung/larawinds

最新稳定版本:v0.0.16

Composer 安装命令:

composer require dianagung/larawinds

包简介

The Laravel-Tailwind CSS Components Kit

README 文档

README

Warning: under development

Installations

Follow the guide for installing Larawinds on your Laravel projects.

Composer

First, you need to install composer packages for Larawinds:

composer require dianagung/larawinds

Registering Service Provider

You need to register the Larawinds service provider in config/app.php:

Dianagung\Larawinds\LarawindsServiceProvider::class

Setting Tailwind

Open tailwind.config.js file on your project. Then add the following command :

content: [
    "./vendor/dianagung/larawinds/src/resources/**/*.blade.php",
    "./vendor/dianagung/larawinds/src/resources/**/*.js",
  ],

Dependencies

Install NPM packages below:

npm install alpinejs 
npm install sweetalert2
npm install vanillajs-datepicker --save-dev

Then, run npm development server:

npm run dev

Components

Input Text

<x-input.text name="title" label="Content Title" placeholder="Enter title here" value="" />

Input Number

<x-input.number name="price" label="Price" prefix="IDR" suffix="Pcs" maxlength="18" value="" />

Input Password

<x-input.password name="password" label="Password" placeholder="Enter password here" value="" />

Input Date

<x-input.date name="date" label="Select Date" placeholder="mm/dd/yyyy" value="" />

Input Textarea

<x-input.textarea name="description" label="Description" placeholder="Describe yourself here..." />

Checkbox & Radio

Checkbox

Uncheck

<x-checkbox name="newsletter" title="Submit Newsletter" text="Get upto 45% OFF discount for this seasons." />

Checked

<x-checkbox name="newsletter" title="Submit Newsletter" text="Get upto 45% OFF discount for this seasons." checked="1" />

or

<x-checkbox name="newsletter" title="Submit Newsletter" text="Get upto 45% OFF discount for this seasons." checked="true" />

Radio

Uncheck

<x-radio name="package" title="Free, Pro" text="IDR 99000, IDR 249000" value="free,pro" />

Checked

<x-radio name="package" title="Free, Pro" text="IDR 99000, IDR 249000" value="free,pro" key="free" />

Uploads

Upload Image

<x-upload.image name="avatar" label="Upload Avatar" accept="jpg,png" maxsize="2 MB" />

Form

Card Form

Method Store

<x-card.form title="Card Title" action="{{ route('route') }}" btext="Save">
    // other components here
</x-card.form>

Method Update

<x-card.form title="Card Title" action="{{ route('route') }}" btext="Update" method="PUT">
    // other components here
</x-card.form>

Delete (Button)

<x-delete action="{{ route('route') }}" confirm-title="Are you sure want to delete" confirm-text="This action can not be undo!" confirm-yes="Yes. Delete it!" confirm-no="No. Cancel." />

Buttons

Primary

<x-button.primary type="button" text="Save" />

Secondary

<x-button.secondary type="button" text="Cancel" />

License

The Laravel framework and Tailwind CSS is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-03