4.2.0
CoreQuestionnaire

Questionnaire API

Every prop of the 14 parts Questionnaire exports, plus the 1 symbol it exports alongside them, generated from the package manifest.

import { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, useQuestionnaire } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Questionnaire · QuestionnaireActions · QuestionnaireChoice · QuestionnaireChoiceDescription · QuestionnaireChoices · QuestionnaireDescription · QuestionnaireError · QuestionnaireItem · QuestionnaireNext · QuestionnairePrevious · QuestionnaireProgress · QuestionnaireSkip · QuestionnaireSubmit · QuestionnaireTitle · useQuestionnairetypes: QuestionnaireChoiceProps · QuestionnaireContextValue · QuestionnaireItemProps · QuestionnaireProps · QuestionnaireRegistration
Variants
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
Contract
packages/brand-system/src/components/questionnaire.contract.test-d.ts
Demos
9 on the Questionnaire page — rendered live, hydrated
Source
packages/brand-system/src/components/questionnaire.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Questionnaire is for, how it composes and what it looks like, see Questionnaire.

Questionnaire

QuestionnaireProps

Prop

Type

Also accepts everything from Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit'>.

QuestionnaireActions

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireChoice

QuestionnaireChoiceProps

Prop

Type

Also accepts everything from Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'>.

QuestionnaireChoiceDescription

A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireChoices

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireDescription

A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireError

A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireItem

QuestionnaireItemProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLFieldSetElement>.

QuestionnaireNext

React.ComponentPropsWithoutRef<typeof Button>

Prop

Type

Also accepts everything from React.ComponentPropsWithoutRef<typeof Button>.

QuestionnairePrevious

React.ComponentPropsWithoutRef<typeof Button>

Prop

Type

Also accepts everything from React.ComponentPropsWithoutRef<typeof Button>.

QuestionnaireProgress

A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

QuestionnaireSkip

React.ComponentPropsWithoutRef<typeof Button>

Prop

Type

Also accepts everything from React.ComponentPropsWithoutRef<typeof Button>.

QuestionnaireSubmit

React.ComponentPropsWithoutRef<typeof Button>

Prop

Type

Also accepts everything from React.ComponentPropsWithoutRef<typeof Button>.

QuestionnaireTitle

A styled <legend> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

useQuestionnaire

A React hook.Call it inside a component rendered under this module's provider; outside one it throws, which is the contract rather than a bug.

(): QuestionnaireContextValue

On this page