github-actions
released this
04 Apr 09:12
·
471 commits
to main
since this release
Minor Changes
-
96c2ca6: Removed
SegmentedButtonGroup
from labs and promoted to core. -
8ed621b: Removed the
onClose
prop fromOverlay
,onOpenChange
is now called for events that open/close the overlay.export const ControlledOverlay = () => { const [open, setOpen] = useState(false); const onOpenChange = (newOpen: boolean) => setOpen(newOpen); return ( <Overlay open={open} onOpenChange={onOpenChange}> <OverlayTrigger> <Button>Show Overlay</Button> </OverlayTrigger> <OverlayPanel>Overlay Content</OverlayPanel> </Overlay> ); };
-
ebe5917: Added
OverlayPanelCloseButton
andOverlayPanelContent
components as children ofOverlayPanel
export const OverlayWithCloseButton = ({ onOpenChange }: OverlayProps) => { const [open, setOpen] = useState(false); const onChange = (newOpen: boolean) => { setOpen(newOpen); }; const handleClose = () => setOpen(false); return ( <Overlay open={open} onOpenChange={onChange}> <OverlayTrigger> <Button>Show Overlay</Button> </OverlayTrigger> <OverlayPanel> <OverlayPanelCloseButton onClick={handleClose} /> <OverlayPanelContent>Overlay Content</OverlayPanelContent> </OverlayPanel> </Overlay> ); };
Patch Changes
- f620261: Visual updates to Calendar's "today" indicator and Tab's active indicator due to
--salt-size-indicator
being updated.