Remix ui@0.13.0
ui v0.13.0
This release removes obsolete styled component prop types and changes the toggle mixin and its options type, which may require updates to existing imports and calls. It also adds a reduced-motion preference helper and adjusts server rendering so selected behavior-only mixins do not run setup or render on the server.
Consumers using the removed component types or the previous toggle API must update their code; consumers using animations can check reduced-motion preference, and server-rendered applications receive the updated mixin behavior.
Update toggle imports and calls, and remove references to the deleted types and Accordion heading-level API.
- 01Change toggle imports from `import * as toggle from '@remix-run/ui/toggle'` to `import { toggle } from '@remix-run/ui/toggle'`, and replace `toggle.control(options)` with `toggle(options)`.
- 02Rename imports of `ToggleControlOptions` to `ToggleOptions`.
- 03Remove references to the removed styled component prop types and Accordion heading-level API.
import { animateLayout, prefersReducedMotion, spring } from '@remix-run/ui/animation'
function Card() {
return () => (
<div mix={animateLayout(prefersReducedMotion() ? false : { ...spring('snappy') })}>Details</div>
)
}# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.