Linux 软件免费装

YayCommerce Blocks for Shadcn UI

开发者 yaycommerce
更新时间 2026年11月12日 02:29
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

theme blocks gutenberg patterns shadcn

下载

1.0.0 1.1.0

详情介绍:

YayCommerce Blocks for Shadcn UI is a companion plugin for the Shadcn theme. It adds interactive Gutenberg blocks built on Shadcn UI design principles and a library of ready-made section patterns. Note: This plugin requires the WordPress Shadcn theme, or a child of it, to be active. shadcn/ui is an open-source project by shadcn. This plugin is not affiliated with or endorsed by shadcn/ui; it is built by YayCommerce for the Shadcn WordPress theme. Content and layout blocks Overlay and notification blocks Motion and data blocks Pricing blocks Form blocks Submissions travel over a public REST endpoint guarded by a honeypot and per-IP rate limiting, and nothing is stored in the database. Delivery uses wp_mail(), so a mail or SMTP plugin is recommended for reliable sending. Developers can veto a submission, to add a captcha for example, with the shadcn_form_validate filter. Filtering Live Purchase (WooCommerce only) It runs from one of two sources. Real orders publishes genuine recent purchases: a shortened buyer name such as "Sarah M.", the product, how long ago, and optionally the city. Read that sentence again before switching it on — it means customer first names, and city if you enable it, become visible to every anonymous visitor. Full names, addresses, order totals, order IDs and email addresses are never included, orders below a threshold you set keep the toast silent, and the feed is served over a rate-limited endpoint whose fields are signed so they cannot be widened from the outside. Simulated invents the purchases instead, drawing products from your own best sellers. No buyer is invented: every notification reads "Someone just purchased ...", with no name and no location. Presenting invented purchases as genuine is restricted under EU consumer law and by the FTC, so treat this as a demo and staging feature and think hard before running it on a live shop. Patterns 473 section patterns ship with the plugin, filed under their own categories in the inserter: about, awards, banner, call to action, careers, case studies, changelog, community, compare, compliance, contact, download, FAQ, footer, hero, incentives, industries, portfolio, posts, pricing, process, services, stats, team, testimonials, text and timeline. Patterns are registered lazily, so they cost nothing until the inserter actually reads one, and every placeholder image ships with the plugin, so a pattern makes no outbound requests to render. Editor extensions Integrations Features

安装:

  1. Ensure the Shadcn theme is installed and activated
  2. Upload the yaycommerce-blocks-for-shadcn-ui folder to /wp-content/plugins/
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Start using Shadcn blocks in the Block Editor

屏幕截图:

  • Accordion block with collapsible items
  • Alert block with dismissible functionality
  • Drawer block slide-out panel
  • Block category in the editor

常见问题:

Does this plugin work without the Shadcn theme?

No, this plugin is designed specifically as a companion to the Shadcn theme. It requires the Shadcn theme to be active to function properly.

How do I find the blocks in the editor?

All Shadcn blocks are grouped under the "Shadcn" category in the Block Editor. You can also search for them by name (Card, Alert, Badge, etc.).

Are the blocks responsive?

Yes, all blocks are fully responsive and work seamlessly on mobile, tablet, and desktop devices.

Can I customize the block styles?

Yes, blocks inherit styling from the Shadcn theme and support WordPress block editor features like color, spacing, and border customization.

Do the interactive blocks work without JavaScript?

The static content will always display, but interactive features (drawer open/close, tooltip, etc.) require JavaScript to function.

Where do I find the section patterns?

In the block editor, open the inserter and switch to the Patterns tab. The plugin's patterns are filed under their own section categories - Hero, Pricing, Testimonials, FAQ, Footer and so on - so you can browse by the kind of section you need rather than scrolling one long list.

Where do form submissions go? Are they stored?

They are emailed and nothing is stored. Each submission is sent to the site admin address, or to the recipient set on that specific Form block, and no database table or post type keeps a copy - so export a submission from your inbox if you need it. The first email address in the submission becomes the Reply-To, so answering the notification replies to the visitor. Mail is sent with wp_mail(), so a mail or SMTP plugin is recommended for reliable delivery, and the recipient address is signed by the site, so a visitor cannot redirect a form to somewhere else.

How are forms protected from spam?

Two layers ship by default: a honeypot field that bots fill in and humans never see, and a per-IP rate limit of 5 submissions every 10 minutes. Anything stricter is up to you - the shadcn_form_validate filter lets a developer reject a submission for any reason, which is where a captcha or an external spam service would be wired in.

更新日志:

Nov 10, 2026 - Version 1.1 Oct 22, 2026 - Version 1.0.0 First public release. Requires the Shadcn theme (or a child of it) to be active.