Arrow primitive for Fict, modeled after @radix-ui/react-arrow. Renders a small SVG triangle used as the pointer for popovers, tooltips, dropdowns, and other floating surfaces.
Part of ui-primitives, a port of Radix Primitives to Fict.
Internal building block, usually consumed through a component's
Arrowpart (e.g.Popover.Arrow). Also re-exported from@fictjs/radix-ui/internal.
pnpm add @fictjs/arrow fict/** @jsxImportSource fict */
import * as Arrow from '@fictjs/arrow'
export function Example() {
return <Arrow.Root width={12} height={6} />
}Arrow.Root(Root) —width,height. Renders ansvg; supportsasChildto swap in a custom shape.
- Components:
Arrow(Root). - Types:
ArrowProps.
The API mirrors @radix-ui/react-arrow. See the ui-primitives overview and the architecture guide.
MIT © Fict contributors.