Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Form Field Label #3543

Open
napei opened this issue Mar 12, 2025 · 0 comments
Open

Inline Form Field Label #3543

napei opened this issue Mar 12, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request v3 #1289

Comments

@napei
Copy link

napei commented Mar 12, 2025

Description

I wanted to do something like the inline field label shown in the component examples in the docs, but couldn't find a suitable builtin. I think it's a nice halfway between MD's label-in-the-field strategy and while I could abuse the leading slot of the input, I think it makes more sense to be generic across input types.

Image

I did end up copy/pasting the source but it would be cool if the FormField (or something) had an inline variant that did this.

For reference:

class="inline-flex ring ring-(--ui-border-accented) rounded-(--ui-radius)"
:ui="{
wrapper: 'bg-(--ui-bg-elevated)/50 rounded-l-(--ui-radius) flex border-r border-(--ui-border-accented)',
label: 'text-(--ui-text-muted) px-2 py-1.5',
container: 'mt-0'
}"

Thanks for your consideration 😄

Additional context

No response

@napei napei added enhancement New feature or request triage v3 #1289 labels Mar 12, 2025
@romhml romhml self-assigned this Mar 14, 2025
@romhml romhml removed the triage label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants