Skip to content

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

NameTypeRequiredDescription
idstringYesStable identifier per component instance. Useful for HTML APIs like
htmlFor, aria-owns, etc. so consumers don't have to supply an id.
propsMacroTransPropsYesStable props object for the component instance. The object identity does not
change across updates, but its values are updated before each render.
contextContext<NoContext>YesSet and get values in an element tree for indirect ancestor/descendant
communication.
frameFrameHandleYesThe component's closest frame
frames{ readonly top: FrameHandle; get(name: string): FrameHandle | undefined }YesAccess named frames in the current runtime tree.
signalAbortSignalYesA 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>

Source entry on GitHub

Last updated: November 10, 2026