A one-time entrance for the object a page opens on: it comes into focus, an outline draws itself around it, and one sheen crosses it. Under a second in all, and the final state at once with reduced motion.
Examples
On cue
With trigger="manual" the object waits in its start state until play turns true, for example after a headline has set or when a step finishes.
Installation
npx knowns-ui@latest add resolve-entrancePaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Resolve Entrance from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/resolve-entrance
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add resolve-entrance
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/resolve-entrance.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/resolve-entrance, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "resolve-entrance" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- children
ReactNode- The object. It is in the DOM and readable from the first render.
- trigger
"mount"|"view"|"manual"- Default
"view" - Play once mounted, once a third of it is in view, or when play turns true.
- play
boolean- With trigger manual: plays when it becomes true.
- outline
boolean- Default
true - Draw an outline around the object; it stays once drawn.
- outlineOffset / radius
number / number- Default
10 / 20 - Gap from the object to the outline, and the object's corner radius in px (the outline adds the gap).
- sheen
boolean- Default
true - One light band across the object at the end.
- onDone
() => void- After the last beat; at once under reduced motion.
- outlineClassName
string- Stroke colour and width of the outline, for example stroke-primary.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | - | The object. It is in the DOM and readable from the first render. |
| trigger | "mount" | "view" | "manual" | "view" | Play once mounted, once a third of it is in view, or when play turns true. |
| play | boolean | - | With trigger manual: plays when it becomes true. |
| outline | boolean | true | Draw an outline around the object; it stays once drawn. |
| outlineOffset / radius | number / number | 10 / 20 | Gap from the object to the outline, and the object's corner radius in px (the outline adds the gap). |
| sheen | boolean | true | One light band across the object at the end. |
| onDone | () => void | - | After the last beat; at once under reduced motion. |
| outlineClassName | string | - | Stroke colour and width of the outline, for example stroke-primary. |
Beats
- Focus
opacity, scale .96 to 1, 3px blur to sharp- Default
0ms - 420ms, ease out
- Outline draws
stroke draws around- Default
120ms - 420ms, ease in-out
- Sheen pass
one band, left to right- Default
420ms - 280ms, ease in-out
- Reduced motion
final state- Default
0ms - no sheen
| Prop | Type | Default | Description |
|---|---|---|---|
| Focus | opacity, scale .96 to 1, 3px blur to sharp | 0ms | 420ms, ease out |
| Outline draws | stroke draws around | 120ms | 420ms, ease in-out |
| Sheen pass | one band, left to right | 420ms | 280ms, ease in-out |
| Reduced motion | final state | 0ms | no sheen |
Accessibility
- The object is never removed or hidden from assistive tech; only its look waits for the entrance.
- The outline and the sheen are decorative and aria-hidden.
- It plays once. Re-renders do not replay it; change the key to play it again.
When to use
When to use
- The object a landing page opens on (a card, a badge, a device) arriving once as the hero sets.
- A new thing that was just made (a key issued, a pass printed) appearing on cue after the step that made it.
When not to use
- Rows, toasts and anything seen many times a day: use Toast.
- Pointing at the option to choose: use Shine Border.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Resolve Entrance to my app and wire it to my own data.
- I need the object a landing page opens on (a card, a badge, a device) arriving once as the hero sets. Set that up with the Knowns UI Resolve Entrance.
- Which Resolve Entrance props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "resolve-entrance" }) and search_docs({ query: "resolve entrance" }).