Changelog
3.x
3.0.1
- Finally update the README.md to be about the project. 😁
3.0.0
- Dropdowns have been rebuilt with accessibility in mind. They now use the
aria-haspopup
andaria-expanded
attributes to indicate their state. See the Dropdown docs for more information. - Dropdown
position
has been renamed toplacement
. - Dropdown
end
prop has been removed. Use the newplacement
options, instead. - Dropdown
position
now supports additional values.- Previously only
left
,right
,top
, andbottom
were supported. - Now an
-end
or-start
suffix can be added to any of the previous values to indicate the end or start of the target element. - Additional values include
left-start
,left-end
,right-start
,right-end
,top-start
,top-end
,bottom-start
, andbottom-end
.
- Previously only
- Dropdowns now use FloatingUI so they use absolute positioning to flow above the content.
- Added the
MenuExpand
andMenuExpandToggle
components to replace inline dropdowns inside of menus. See the Menu docs for more information.
Migrating from 2.x to 3.x:
- Combine the
position
andend
attributes into the newplacement
attribute.
2.x
2.2.0
- Added the
DropdownTarget
component to allow for unstyled dropdown buttons. See the Dropdown docs for more information.