承接 ramiro1982/post-read-more 相关项目开发

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

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

ramiro1982/post-read-more

最新稳定版本:v1.0.4

Composer 安装命令:

composer require ramiro1982/post-read-more

包简介

Blade + Alpine.js component to truncate post text with a 'Read more…' button

README 文档

README

A reusable Blade + Alpine.js component to truncate post descriptions with a Read more… button when the text overflows. Useful for blogs, feeds, or article previews.

📦 Installation

Install the package via Composer:

composer require ramiro1982/post-read-more:^1.0.4

🧠 Requirements

This component uses the line-clamp utility from Tailwind CSS, so make sure it is available in your project.

🚀 Usage

You can pass any text and additional Tailwind classes:

    <x-post-read-more :text="$post->description" class="text-base text-gray-700" />

The text will be truncated to 3 lines, and if it overflows, a "Read more…" button will appear to expand the full content.

🙌 Created by

Made with 💻 and ☕ by Ramiro Rimoldi

🤝 Contributing

Pull requests and suggestions are welcome! If you find a bug or want to add a feature, feel free to open an issue or PR.

📄 License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

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