# @fayegram-ai/faye-ui/motion/presence

Public exports and dependency-resolved component properties, with usage and rendering guidance.

## Import

```tsx
import { Presence, Fade, Collapse, Slide, Scale } from '@fayegram-ai/faye-ui/motion/presence';
```

[Usage and behavior guide](/docs/motion/) · [API JSON](/api/packages/motion/presence.json)

This entry declares a client boundary. Follow the rendering guide for framework integration.

## Public exports

| Name | Kind | Resolved declaration type |
|---|---|---|
| `Presence` | value | `({ present, keepMounted, appear, effect, onExitComplete, direction, container, orientation, scaleOrigin, enterDuration, exitDuration, ref, style, children, className, ...props }: PresenceProps) => import("react").JSX.Element \| null` |
| `Fade` | value | `(props: Omit<PresenceProps, "effect">) => import("react").JSX.Element` |
| `Collapse` | value | `(props: Omit<PresenceProps, "effect">) => import("react").JSX.Element` |
| `Slide` | value | `(props: Omit<PresenceProps, "effect">) => import("react").JSX.Element` |
| `Scale` | value | `(props: Omit<PresenceProps, "effect">) => import("react").JSX.Element` |
| `PresenceProps` | type | `PresenceProps` |

## Presence

Show and hide ordinary content. Dialogs, menus and drawers include their own transitions.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

### Properties

| Property | Required | Type | Meaning |
|---|---|---|---|
| `appear` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `container` | No | `HTMLElement \| RefObject<HTMLElement \| null> \| null \| undefined` | Optional boundary to slide fully outside instead of using the small default offset. |
| `direction` | No | `"start" \| "end" \| "left" \| "right" \| "up" \| "down" \| undefined` | Slide starts at this edge; start/end follow computed text direction. |
| `effect` | No | `"scale" \| "fade" \| "slide" \| "collapse" \| undefined` | See the usage contract and declaration. |
| `enterDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `exitDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `keepMounted` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `onExitComplete` | No | `(() => void) \| undefined` | See the usage contract and declaration. |
| `orientation` | No | `"horizontal" \| "vertical" \| undefined` | See the usage contract and declaration. |
| `present` | Yes | `boolean` | See the usage contract and declaration. |
| `ref` | No | `Ref<HTMLDivElement> \| undefined` | See the usage contract and declaration. |
| `scaleOrigin` | No | `Property.TransformOrigin<string \| number> \| undefined` | See the usage contract and declaration. |



## Fade

Public component; use the linked family guide for complete composition and behavior.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

### Properties

| Property | Required | Type | Meaning |
|---|---|---|---|
| `appear` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `container` | No | `HTMLElement \| RefObject<HTMLElement \| null> \| null \| undefined` | Optional boundary to slide fully outside instead of using the small default offset. |
| `direction` | No | `"start" \| "end" \| "left" \| "right" \| "up" \| "down" \| undefined` | Slide starts at this edge; start/end follow computed text direction. |
| `enterDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `exitDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `keepMounted` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `onExitComplete` | No | `(() => void) \| undefined` | See the usage contract and declaration. |
| `orientation` | No | `"horizontal" \| "vertical" \| undefined` | See the usage contract and declaration. |
| `present` | Yes | `boolean` | See the usage contract and declaration. |
| `ref` | No | `Ref<HTMLDivElement> \| undefined` | See the usage contract and declaration. |
| `scaleOrigin` | No | `Property.TransformOrigin<string \| number> \| undefined` | See the usage contract and declaration. |



## Collapse

Public component; use the linked family guide for complete composition and behavior.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

### Properties

| Property | Required | Type | Meaning |
|---|---|---|---|
| `appear` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `container` | No | `HTMLElement \| RefObject<HTMLElement \| null> \| null \| undefined` | Optional boundary to slide fully outside instead of using the small default offset. |
| `direction` | No | `"start" \| "end" \| "left" \| "right" \| "up" \| "down" \| undefined` | Slide starts at this edge; start/end follow computed text direction. |
| `enterDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `exitDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `keepMounted` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `onExitComplete` | No | `(() => void) \| undefined` | See the usage contract and declaration. |
| `orientation` | No | `"horizontal" \| "vertical" \| undefined` | See the usage contract and declaration. |
| `present` | Yes | `boolean` | See the usage contract and declaration. |
| `ref` | No | `Ref<HTMLDivElement> \| undefined` | See the usage contract and declaration. |
| `scaleOrigin` | No | `Property.TransformOrigin<string \| number> \| undefined` | See the usage contract and declaration. |



## Slide

Public component; use the linked family guide for complete composition and behavior.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

### Properties

| Property | Required | Type | Meaning |
|---|---|---|---|
| `appear` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `container` | No | `HTMLElement \| RefObject<HTMLElement \| null> \| null \| undefined` | Optional boundary to slide fully outside instead of using the small default offset. |
| `direction` | No | `"start" \| "end" \| "left" \| "right" \| "up" \| "down" \| undefined` | Slide starts at this edge; start/end follow computed text direction. |
| `enterDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `exitDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `keepMounted` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `onExitComplete` | No | `(() => void) \| undefined` | See the usage contract and declaration. |
| `orientation` | No | `"horizontal" \| "vertical" \| undefined` | See the usage contract and declaration. |
| `present` | Yes | `boolean` | See the usage contract and declaration. |
| `ref` | No | `Ref<HTMLDivElement> \| undefined` | See the usage contract and declaration. |
| `scaleOrigin` | No | `Property.TransformOrigin<string \| number> \| undefined` | See the usage contract and declaration. |



## Scale

Public component; use the linked family guide for complete composition and behavior.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

### Properties

| Property | Required | Type | Meaning |
|---|---|---|---|
| `appear` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `container` | No | `HTMLElement \| RefObject<HTMLElement \| null> \| null \| undefined` | Optional boundary to slide fully outside instead of using the small default offset. |
| `direction` | No | `"start" \| "end" \| "left" \| "right" \| "up" \| "down" \| undefined` | Slide starts at this edge; start/end follow computed text direction. |
| `enterDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `exitDuration` | No | `number \| undefined` | See the usage contract and declaration. |
| `keepMounted` | No | `boolean \| undefined` | See the usage contract and declaration. |
| `onExitComplete` | No | `(() => void) \| undefined` | See the usage contract and declaration. |
| `orientation` | No | `"horizontal" \| "vertical" \| undefined` | See the usage contract and declaration. |
| `present` | Yes | `boolean` | See the usage contract and declaration. |
| `ref` | No | `Ref<HTMLDivElement> \| undefined` | See the usage contract and declaration. |
| `scaleOrigin` | No | `Property.TransformOrigin<string \| number> \| undefined` | See the usage contract and declaration. |



## Defaults and customization

Defaults and native behavior are documented in the linked family guide. This reference does not infer a default from an optional property.

Use semantic tokens, public part hooks and customization sheets. Keep visual configuration separate from application state.

## State, events and accessibility

For interactive controls, pair a controlled value/open prop with its corresponding change callback; default props initialize uncontrolled state. Keep application validation and submission policy explicit. Name controls with visible labels, name icon-only actions on the button, and preserve focus and dismissal behavior when replacing parts. Use native form names and submit/reset types where supported. See the usage guide for component-specific behavior and live examples.

## Declaration authority

Generated from `packages/faye-ui/dist/motion/presence.d.ts` after the semantic package build. Common native/React attributes are intentionally omitted from property tables. Generic overloads, discriminated unions and complete inherited attributes remain authoritative in installed TypeScript declarations. [React DOM attributes](https://react.dev/reference/react-dom/components/common) and [Base UI component contracts](https://base-ui.com/react/overview/quick-start) describe the inherited foundations.
