Skip to content

feat(web): support ui.asterisk option in registry fields - #147

Merged
ladparth merged 3 commits into
mainfrom
feat/hide-asterisk
May 18, 2026
Merged

feat(web): support ui.asterisk option in registry fields#147
ladparth merged 3 commits into
mainfrom
feat/hide-asterisk

Conversation

@ladparth

Copy link
Copy Markdown
Contributor

Description

This PR implements the requested ui.asterisk layout option in all 16 field components within the shadcn registry. By default, a required field displays a red asterisk (*). Setting ui: { asterisk: false } in the field schema disables the asterisk visual rendering.

It also registers the upload field component (which was previously missing from registry.json) and the three new file upload example forms (profile-upload-form, gallery-upload-form, document-upload-form), rebuilding the registry.

Key Changes

Docs / Web (apps/web)

  • Added optional asterisk?: boolean to Ui option interfaces in all 16 shadcn registry field components.
  • Conditionally rendered required asterisks in field labels based on the ui?.asterisk !== false flag.
  • Added upload field component to registry.json list of components and the all command dependencies.
  • Added new file upload example forms (profile-upload-form, gallery-upload-form, document-upload-form) to registry.json block list.
  • Rebuilt the shadcn registry using pnpm --filter web registry:build.
  • Updated schema documentation (schema.mdx) with a dedicated "Hiding Required Asterisks" section.
  • Added ui.asterisk: false demonstration to contact-form.tsx and login-form.tsx examples.

Type of change

  • feat (New feature)
  • docs (Documentation changes)

Related Issues

@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
buzzform Ready Ready Preview, Comment May 18, 2026 7:09pm

@ladparth
ladparth merged commit 9abbe4d into main May 18, 2026
3 checks passed
@ladparth
ladparth deleted the feat/hide-asterisk branch May 18, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Ability to hide the "required" asterisk on specific fields

1 participant