Skip to content

[6.x] Add suffix support to text form controls - #19770

Merged
riasvdv merged 2 commits into
6.xfrom
extract/19665-text-input-suffix-retry
Oct 1, 2026
Merged

riasvdv merged 2 commits into
6.xfrom
extract/19665-text-input-suffix-retry

Conversation

@riasvdv

@riasvdv riasvdv commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Description

Adds Text::suffix(?string) to the Form API, serializes the suffix in control props, and renders it through the PHP input component and Vue text control. Literal suffix text is escaped, and a caller-provided Vue suffix slot overrides the fallback.

 <slot name="suffix">
+  <span v-if="control.props.suffix" slot="suffix">{{ control.props.suffix }}</span>
 </slot>

Input names, validators, text expanders, input modes, and submission values retain their existing behavior. This independently extracts the text suffix changes from #19665.

riasvdv and others added 2 commits October 1, 2026 10:10
Co-authored-by: Nathaniel Hammond <nathaniel@pixelandtonic.com>
Co-authored-by: Nathaniel Hammond <nathaniel@pixelandtonic.com>
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv merged commit dd259b3 into 6.x Oct 1, 2026
23 of 24 checks passed
@riasvdv
riasvdv deleted the extract/19665-text-input-suffix-retry branch October 1, 2026 08:23
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.

1 participant