hiip/ui

Components / Data

Detail Panel

A record's fields grouped into titled sections, one field per row.

Install — needs @hiip registered in components.json

bunx shadcn@latest add @hiip/detail-panel

Or by URL, with the token in the query

bunx shadcn@latest add "https://ui.hiip.ai/r/detail-panel.json?token=$HIIP_REGISTRY_TOKEN"

Both need a token — set one up.

Anatomy

Import from components/ui/hiip-ui/detail-panel.

<DetailPanel>
  <DetailSection title="Contact">
    <DetailRow icon={…} action={…} hint>
      value
      <DetailMeta>secondary value</DetailMeta>
    </DetailRow>
  </DetailSection>
</DetailPanel>

Examples

Contact

sample_creator
84000000000
Sample Brand - Skincare
Segment A - Group B - Category one / category two / category three

Ownership

Sample Owner 84000000001
Online
PICSample Assignee
+1

API Reference

Generated from the source. Props forwarded to the underlying element are not listed.

DetailPanel

No props of its own.

DetailSection

One titled group.

PropTypeDefault
titleReactNode

DetailRow

One field.

PropTypeDefault
actionReactNode
hint

Marks the value as carrying more than it shows — a handle that opens a profile, a brand that resolves to a campaign.

boolean | undefined
iconReactNode
labelReactNode

DetailMeta

The muted second value on a row — a phone number beside a name, a count beside a label.

No props of its own.

Type
registry:ui
Files written
  • components/ui/hiip-ui/detail-panel.tsx