@survey-kit/registry
v0.1.1
Published
Component registry for survey UI components built with shadcn/ui
Downloads
16
Readme
@survey-kit/registry
Component registry for survey UI components built with Radix UI and Tailwind CSS.
Overview
The registry package provides pre-built, accessible React components for building survey interfaces:
- Primitives – Button, Input, Heading, Card, Checkbox
- Layout – Header, Footer, Sidebar, Wrapper, Stage Tabs
- Complex – Progress Bar, Score Card, Blocked Page
- Form controls – Dropdown, Select components
All components are built on accessible primitives (Radix UI) and styled with Tailwind CSS.
Features
- WCAG 2.2 AA accessible components
- Fully customisable with Tailwind CSS
- Built on Radix UI primitives
- TypeScript support
- Mobile-first, responsive design
- Consistent design system
Installation
npm install @survey-kit/registryUsage
import { Button, Input, Card, ProgressBar } from '@survey-kit/registry'
function MyComponent() {
return (
<Card>
<Input type="text" placeholder="Enter your name" />
<Button variant="default">Submit</Button>
</Card>
)
}Component Categories
Primitives
Button– Various button variants and sizesInput– Text, email, number, date inputsHeading– Heading componentsCard– Card container componentCheckbox– Checkbox with singular/multiple variants
Layout
Header– Survey header with logo and actionsFooter– Survey footer with logoSidebar– Collapsible sidebar navigationWrapper– Layout wrapper componentStageTabs– Stage navigation tabsMainContent– Main content area component
Complex
ProgressBar– Progress indicator componentScoreCard– Score display componentBlockedPage– Page access restriction component
Form Controls
Dropdown/Select– Dropdown select componentSimpleDropdown– Simplified dropdown API
Customisation
Components can be customised using Tailwind CSS classes or by extending component variants. All components accept standard React props and className overrides.
Requirements
- React 19+
- Tailwind CSS 4+
Licence
MIT
