p-sw ffb8504b09 feat(tooltip): enhance Tooltip with AsChild property
This update enhances the Tooltip component in the react/components package by adding the AsChild property. Now, users of the Tooltip component have flexibility to use it as a child of another component. A conditional logic is added to choose either Slot or "div" based on the asChild property. And rest of the properties are extracted into extractedRest for avoiding passing of asChild downstream.
2024-06-11 20:30:53 +09:00
..