Remix / macro: Trans
Functions, types, and exports for Remix / macro: Trans.
Page outline
import { Trans } from "@palamedes/remix/macro"
<Trans id={…} props={…} context={…} frame={…} frames={…} signal={…} />
Props
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Stable identifier per component instance. Useful for HTML APIs like htmlFor, aria-owns, etc. so consumers don't have to supply an id. |
props | MacroTransProps | Yes | Stable props object for the component instance. The object identity does not change across updates, but its values are updated before each render. |
context | Context<NoContext> | Yes | Set and get values in an element tree for indirect ancestor/descendant communication. |
frame | FrameHandle | Yes | The component's closest frame |
frames | { readonly top: FrameHandle; get(name: string): FrameHandle | undefined } | Yes | Access named frames in the current runtime tree. |
signal | AbortSignal | Yes | A signal indicating the connected status of the component. When the component is disconnected from the tree the signal will be aborted. Useful for setup scope cleanup. |
Props type: Handle<MacroTransProps>
Last updated: November 10, 2026