razorpay / blade

Design System that powers Razorpay
https://blade.razorpay.com
MIT License
495 stars 129 forks source link

Replace Custom Dropdown with Floating UI Implementation #1353

Open saurabhdaware opened 1 year ago

saurabhdaware commented 1 year ago

We didn't come across Floating UI while building Dropdown but it seems like a perfect library for our usecase.

Example: https://codesandbox.io/s/admiring-lamport-5wt3yg?file=/src/DropdownMenu.tsx

Things to explore

Will simplify few things for future

anuraghazra commented 6 months ago

@saurabhdaware did we do this? I remember you replacing this with FloatingUI

saurabhdaware commented 5 months ago

@saurabhdaware did we do this? I remember you replacing this with FloatingUI

The dropdown's open, close, and handling screenwidth logic is on floating ui. But there are still few things like typeahead, etc that can be moved so will keep it open for now