patternfly / patternfly-react

A set of React components for the PatternFly project.
https://react-staging.patternfly.org/
MIT License
793 stars 356 forks source link

Checkbox/Radio - allow flow content as body #9111

Open dgdavid opened 1 year ago

dgdavid commented 1 year ago

Is this a new component or an extension of an existing one?

Existing components, Checkbox and Radio.

Describe the feature

To allow flow content for their body prop. Currently it's wrapped in a span element, which only admits phrasing content.

Are there visuals for this feature? If applicable, please include examples for each state and for varying widths

I don't think so.

Any other information?

nicolethoen commented 1 year ago

We could expose a prop to set the body element to be a div rather than the default span. We would not want the consumer to use this prop if they are using the isLabelWrapped prop.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.