adobe / adobe/react-spectrum

[S2] Custom Label component?

Open
#8,107 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the feature here

Would it be possible to have a Label / FieldLabel component that looks like the one available on Form Items, but accessible to other components?

I guess the focus behavior makes it slightly problematic (but you could pass a ref to the associated component)?

### 🤔 Expected Behavior?

- styling homogenous with label prop in form component
- click on label can focus dom ref

### 😯 Current Behavior

FieldLabel component not accessible

### 💁 Possible Solution

_No response_

### 🔦 Context

complex forms

### 💻 Examples

_No response_

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.