daniellefence/buttons 问题修复 & 功能扩展

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

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

daniellefence/buttons

最新稳定版本:1.0.0

Composer 安装命令:

composer require daniellefence/buttons

包简介

Buttons Package used by Danielle Fence and Outdoor Living

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

This package provides a robust <x-df::button> Blade component designed for use with Laravel, Tailwind CSS, and DaisyUI. It supports all DaisyUI button variants, including color states (primary, secondary, accent, etc.), sizes (xs through xl), styles (ghost, link, outline, soft, etc.), and modifiers (block, wide, square, circle, etc.).

Built for full Livewire compatibility, it also includes support for icon slots, a loading prop to show spinners, and loading indicators, making it ideal for building interactive, consistent interfaces quickly.

Installation

You can install the package via composer:

composer require daniellefence/buttons

Usage

// Basic usage
<x-df::button>
    Default
</x-df::button>

// With variant and size
<x-df::button variant="primary" size="lg">
    Submit
</x-df::button>

// With outline and block
<x-df::button variant="secondary" outline block>
    Full Width
</x-df::button>

// With an icon
<x-df::button variant="success">
    <x-slot name="icon">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
        </svg>
    </x-slot>
    Save
</x-df::button>

// With Livewire loading indicator
<x-df::button wire:click="save" wire:loading.attr="disabled">
    <x-slot name="icon">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
        </svg>
    </x-slot>
    Saving...
</x-df::button>

// With loading spinner
<x-df::button loading>
    Loading...
</x-df::button>

Contributing

Contributions are welcome! See CONTRIBUTING for guidelines.

Security

If you discover any security-related issues, please email sbarron@daniellefence.net instead of using the issue tracker.

Credits

Developed and maintained by the IT/Marketing department at Danielle Fence and Outdoor Living.

License

This package is open-sourced software licensed under the MIT license and is © Danielle Fence and Outdoor Living.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-20