Skip to content

Latest commit

 

History

History

arrow

Folders and files

README.md

@fictjs/arrow

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 Arrow part (e.g. Popover.Arrow). Also re-exported from @fictjs/radix-ui/internal.

Installation

pnpm add @fictjs/arrow fict

Usage

/** @jsxImportSource fict */
import * as Arrow from '@fictjs/arrow'

export function Example() {
  return <Arrow.Root width={12} height={6} />
}

Anatomy

  • Arrow.Root (Root) — width, height. Renders an svg; supports asChild to swap in a custom shape.

Exports

  • Components: Arrow (Root).
  • Types: ArrowProps.

Documentation

The API mirrors @radix-ui/react-arrow. See the ui-primitives overview and the architecture guide.

License

MIT © Fict contributors.