# ui Headless, accessible UI primitives and animation utilities for Remix components. ## Installation `@remix-run/ui` is currently unstable and versioned independently. It is not available through the `remix` package. ```sh npm i remix @remix-run/ui ``` ## Usage Compose behavioral primitives with your own markup and styles: ```tsx import { css, on } from 'remix/component' import type { Handle } from 'remix/component' import * as popover from '@remix-run/ui/popover' function ViewOptions(handle: Handle) { let open = false return () => (
Panel content
) } ``` ## Primitives - [`@remix-run/ui/accordion`](https://github.com/remix-run/remix/blob/main/packages/ui/src/accordion/README.md) - [`@remix-run/ui/anchor`](https://github.com/remix-run/remix/blob/main/packages/ui/src/anchor/README.md) - [`@remix-run/ui/combobox`](https://github.com/remix-run/remix/blob/main/packages/ui/src/combobox/README.md) - [`@remix-run/ui/form`](https://github.com/remix-run/remix/blob/main/packages/ui/src/form/README.md) - [`@remix-run/ui/listbox`](https://github.com/remix-run/remix/blob/main/packages/ui/src/listbox/README.md) - [`@remix-run/ui/menu`](https://github.com/remix-run/remix/blob/main/packages/ui/src/menu/README.md) - [`@remix-run/ui/popover`](https://github.com/remix-run/remix/blob/main/packages/ui/src/popover/README.md) - [`@remix-run/ui/select`](https://github.com/remix-run/remix/blob/main/packages/ui/src/select/README.md) - [`@remix-run/ui/tabs`](https://github.com/remix-run/remix/blob/main/packages/ui/src/tabs/README.md) - [`@remix-run/ui/toast`](https://github.com/remix-run/remix/blob/main/packages/ui/src/toast/README.md) - [`@remix-run/ui/toggle`](https://github.com/remix-run/remix/blob/main/packages/ui/src/toggle/README.md) ## Animation Use the animation utilities for entrance, exit, layout, spring, and tween animation: ```tsx import { animateEntrance, animateExit, spring } from '@remix-run/ui/animation' function Toast() { return () => (
Saved
) } ``` See the [`animation` module README](https://github.com/remix-run/remix/blob/main/packages/ui/src/animation/README.md) for layout animation, CSS transitions, Web Animations API options, and imperative animation. ## License See [LICENSE](https://github.com/remix-run/remix/blob/main/LICENSE).