8000 Split/Stack layouts - add support for component prop on items · Issue #11169 · patternfly/patternfly-react · GitHub
[go: up one dir, main page]

Skip to content

Split/Stack layouts - add support for component prop on items #11169

@mcoker

Description

@mcoker

I noticed <StackItem /> and <SplitItem /> always render as a <div> but their parents (<Stack /> and <Split />) allow for a component prop that lets you specify what element to use. If you do something like <Stack component="span"><StackItem>, you'll get <span><div>, which is invalid HTML. We should allow for customization on the element rendered as the split/stack items.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0