uibrik

Orbit FAQ

New

Preview

Customize

Ring radius112px
Icon size44px
Curve1.0
Default category0

Usage

import { OrbitFaq } from "@/components/uibrik/orbit-faq/orbit-faq";

<OrbitFaq categories={categories} />

Installation

npx shadcn@latest add https://uibrik.com/r/orbit-faq.json
Adds the files to components/uibrik/orbit-faq and installs @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/orbit-faq.

Props

OrbitFaq
ringRadius
Type number
112
Radius of the ring the categories sit on.
iconSize
Type number
44
Diameter of a category button.
curve
Type number
1
How strongly the questions curve around the orbit; 0 is a straight list.
connector
Type boolean
true
Draw a line from the category to the open question. Side by side only.
progress
Type boolean
true
A ring round each category that fills as its questions are opened.
watermark
Type boolean
true
The category's icon, large and faint, behind the hub's label.
defaultCategory
Type number
0
Category picked on mount.
categoriesrequired
Type { label: string; icon: ReactNode; items: { question: string; answer: string }[] }[]
–
Categories clockwise from the top, each with an icon and its questions.
className
Type string
–
Classes for the wrapper.