Skip to content

Export useSlot & useRenderProps #6552

Open
@ArrayKnight

Description

@ArrayKnight

Provide a general summary of the feature here

The useSlot & useRenderProps hooks are very useful utilities within the Provider suite. Since we're already able to utilize Provider and the many different component contexts (as well as our own), it would be nice to have full access to related utilities

🤔 Expected Behavior?

useSlot & useRenderProps are exported by react-aria-components

😯 Current Behavior

Not currently exported

💁 Possible Solution

No response

🔦 Context

I'm currently utilizing useSlot to determine if a slot has been implemented or not, which allows for a flag to be provided for logic / styling branching

I'm expecting to have to implement new custom components that will want to implement their own render props

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions