leafs/zero 问题修复 & 功能扩展

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

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

leafs/zero

Composer 安装命令:

composer require leafs/zero

包简介

Beautiful UI components crafted with Alpine, Leaf and Tailwind

README 文档

README

Leaf Zero is a carefully crafted group of components, page sections, UI blocks and application scaffold, fully charged with Alpine, Leaf and Tailwind that will help you build your frontend in no time, leaving you to focus on all the interesting parts of your application.

UI Components

Zero comes with a variety of everyday components like buttons, cards, modals, forms, and more. These components are designed to be easy to use and customize, but also to look great out of the box. They have different styles and colors to fit your application's design.

Button([
  'href' => '/login',
  'variant' => 'text',
  'text' => 'Sign In'
]);

Page Sections/UI Blocks

Zero also comes with a variety of page sections and UI blocks which have been componentized to make them flexible and easy to use in your application. These include headers, footers, hero sections, feature sections, and more.

Hero([
  'title' => 'Plan your next trip Supafast...',
  'subtitle' => 'Get the best deals on flights, hotels, and car rentals.',
  'buttons' => [
    Button([
      'href' => '/subscribe',
      'text' => 'Subscribe to TripifyX',
    ]),
    Button([
      'icon' => '',
      'href' => '/login',
      'variant' => 'outline',
      'text' => 'Sign In',
    ]),
  ],
]);

Leaf powered

Zero components and UI blocks are powered by Leaf, which means that every section will have a full integration and will work as expected right out of the box. Things like form submissions, login, sign up, newsletter subscriptions, blog posts, and more are all built-in and ready to use.

Form([
  'action' => '/subscribe',
  'method' => 'POST',
  'fields' => [
    Input([
      'name' => 'email',
      'label' => 'Email',
      'placeholder' => 'Enter your email',
      'required' => true,
    ]),
    Button([
      'text' => 'Subscribe',
    ]),
  ],
]);
LoginPage_Premium_112([
  'title' => 'Sign In',
  'layout' => 'center',
  'form' => Form([
    'action' => '/login',
    'method' => 'POST',
    'fields' => [
      Input([
        'name' => 'email',
        'label' => 'Email',
        'placeholder' => 'Enter your email',
        'required' => true,
      ]),
      Input([
        'name' => 'password',
        'label' => 'Password',
        'type' => 'password',
        'placeholder' => 'Enter your password',
        'required' => true,
      ]),
      Button([
        'text' => 'Sign In',
      ]),
    ],
  ]),
]);

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-25