Changelog

v0.10.4

·View as markdown·

v0.10.4

Release date: 2026-11-25

  • Fix Silk not working on React 17: sheets and sheet stacks threw an error as they rendered, so nothing appeared.
  • Fix a closed sheet's <Sheet.View> never unmounting while the sheet keeps re-rendering, for example with a clock or a countdown inside it. It now unmounts a few seconds after closing, as it does when nothing re-renders.
  • Fix a sheet getting stuck in Chrome, Edge and Firefox when it closes or steps by less than about a pixel, for example a sheet whose content is about 1px tall, or a step between two detents of the same size in different units (50vh and 448px on an 896px-tall screen). An error was thrown, the travel never ended, and the sheet's view stayed over the page, which no longer responded to clicks. #104
  • Fix the page freezing, then an error, when a sheet whose content is 0px tall is presented, for example while its content loads. Such a sheet now presents, steps and dismisses like any other, with its backdrop dimmed, and onTravel reports a progress of 0 to 1 instead of NaN. #104
  • travelAnimation and stackingAnimation now end exactly on their final values after a spring animation, instead of slightly short of them.
  • Clarify in the API documentation that forComponent selects an ancestor Root for Sheet and Scroll sub-components, and explain how <Island.Root> can target sheets and stacks from outside their Roots. #128

v0.10.3

Release date: 2026-11-17

  • Fix an error thrown when a <Scroll.View> unmounts shortly after it mounts or scrolls, for example on a route change. #122
  • Fix errors thrown in Safari when a sheet whose <Sheet.Backdrop> has themeColorDimming="auto" unmounts while it's open, opening or closing, for example on a route change. Some reached the app's error boundary. The theme color is restored. #122 #129
  • Fix errors thrown in Safari when a component using useThemeColorDimmingOverlay unmounts while animateDimmingOverlayOpacity is running. The theme color is restored, and an element that outlives the component finishes its animation.
  • Fix the theme color not following animateDimmingOverlayOpacity from useThemeColorDimmingOverlay in Safari: an animation started as the component mounts didn't dim it, and the animated dimming was lost when dimmingColor changed or an <Activity> hid then showed the component.
  • Fix <Sheet.Outlet> and <SheetStack.Outlet> animations skipped when a sheet starts to open or close while the Outlet re-renders with a new stackingAnimation or travelAnimation object, for example when the URL changes as the sheet is dismissed. The element stayed still: it didn't follow a sheet as it opened, stayed stacked when the sheet above it closed, or jumped to its final state at the end of a dismissal.

v0.10.2

Release date: 2026-11-12

  • Fix the displayName of <Scroll.Trigger>, which React DevTools showed as Sheet.Trigger.
  • Fix scrollTimelineName and scrollPadding on a <Scroll.View> with pageScroll when native page scroll isn't replaced: they had no effect on the page's scroll.
  • Fix a page that overflows sideways jumping horizontally while a sheet is open.
  • Fix onTravel receiving a range without start and end when the entering or stepping animation is skipped (skip: true).

v0.10.1

Release date: 2026-02-10

  • Improve the safety of internal styles by protecting them from global style overrides.

v0.10.0 (breaking change)

Release date: 2025-10-21

  • Fix a bug that may occur with small <Sheet.Content> or small detents.
  • Change the behavior of the exitingAnimationSettings prop’s contentMove option behavior, when false the <Sheet.Content> now remains on its current detent till the animation is finished. (breaking change)
  • Make theme-color HTML meta tag manipulations safer in contexts where it cannot be defined. #18

v0.9.12

Release date: 2025-09-12

  • Change the behavior of the onClickOutside event handler on <Sheet.View> so it runs even if propagation is stopped on click events fired on <Sheet.View>. #100
  • Expand the componentRef prop type on <Scroll.Root> so it accepts null.

v0.9.11

Release date: 2025-07-10

  • Fix potential error by adding a safeguard. #74
  • Remove some logging. #74

v0.9.10

Release date: 2025-07-06

  • Add an updateThemeColor function that lets you update the theme-color in a safe way while a Sheet using the themeColorDimming prop is presented, or when the useThemeColorDimmingOverlay hook is used.
  • The themeColorDimming prop on <Sheet.Backdrop> now fetches the theme-color meta-tag each time a Sheet gets presented, thus taking into account potential changes. #73

v0.9.9

Release date: 2025-07-02

  • Fix Sheet programmatic dismissal not working with swipeDismissal={false} after a swipe attempt. #71
  • Fix swipeOvershoot={false} not working with tracks using two values and swipeDismissal={false}.

v0.9.8

Release date: 2025-06-30

  • Add JSDoc comments to all components, sub-components and props to provide rich in-editor hints.

v0.9.7

Release date: 2025-06-18

  • Update the website’s domain name in all files.

v0.9.6

Release date: 2025-06-05

  • Fix <Sheet.Handle> not correctly rendering its potential children.
  • Remove focus outline from internal the Scroll component underlying scroll container.
  • Expand <Sheet.Portal> container prop types to let it accept null
  • Expand animate first argument’s types to let it accept null
  • Expand useThemeColorDimmingOverlay's elementRef’s type to let it accept undefined.

v0.9.5

Release date: 2025-06-02

  • Update README

v0.9.3

Release date: 2025-05-05

  • The themeColorDimming prop on <Sheet.Backdrop> now supports color values in hexadecimal format for the theme-color meta tag.
  • The themeColorDimming prop on <Sheet.Backdrop> now uses the <body> HTML element CSS background-color value when the theme-color meta tag is not set.
  • The themeColorDimming prop on <Sheet.Backdrop> now logs a warning when the theme-color meta tag uses a non-supported color format.

v0.9.2

Release date: 2025-05-02

  • Fix onClickOutside event being triggered when a click occurred on an element inside of <Sheet.View> whose ancestor DOM node was removed from the DOM at the same time. #51

v0.9.1

  • Fix “scroll-by” being interpreted as “scroll-to” in <Scroll.Trigger> action prop.
  • Fix descendant element animation starting during the entering phase and ongoing during the idleInside phase preventing interaction with the sheet. #33
  • Fix touchstart and touchend events not propagating to third-party HTML elements. #50

v0.9.0 (breaking change)

  • Change the way Silk low-level CSS styles are imported. Follow the migration guide on how to import them.
  • Add a warning in the console when Silk CSS styles are not detected.
  • Fix onClickOutside event being triggered when a click occurred on an element inside of <Sheet.View> that was removed from the DOM at the same time.
  • Fix onClickOutside event being triggered when a click occurred on an element inside of a third-party overlay component.
  • Fix error when the user presses the escape key when an <ExternalOverlay> is in use.
  • Remove useLayoutEffect warnings in some environments.

v0.8.15

  • Fix travel and stacking animations when a sheet is used in a controlled manner (i.e. using the presented and onPresentedChange props). #28

v0.8.14

  • Throw a proper error when the theme-color meta-tag is not set when the themeColorDimming prop on Sheet.Backdrop is used. #13
  • Throw a proper error when the theme-color meta-tag is not using the rgb() format for its content when using the themeColorDimming prop on Sheet.Backdrop is used. #18
  • Fix the types not being applied to the <Sheet.Root> component. #17
  • Remove unnecessary peerDepencies. #27
  • Fix invalid CSS. #12