recruit/current-company-popover · CurrentCompanyPopover

Current company popover

A current-company line whose company opens your content on hover or tap, mounted only while open.

Riley Okafor

started 3 years ago

Install

With your coding agentInstall RecruiterOS/recruit-ui and add a current company line that opens the person's career history.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
companyrequiredReactNodeThe company name. It becomes the trigger, a link-styled button.
triggerTitlerequiredstringThe trigger's tooltip and accessible description, such as "View Example Co career history".
renderContentrequired() => ReactNodeThe popover's content. Called only while the popover is open, so a host can load what it shows (a career history, say) on demand.
closeDelayMsnumberHow long the popover stays open after a mouse pointer leaves it.
tenureReactNode
suffixReactNode
size"xs" | "sm" | "base"
tone"inherit" | "muted" | "subtle"

Data

The component takes plain values and callbacks and keeps no records of its own. Pass it yours, from the Kith data layer or from a backend you already run.