{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "follow-up-suggestions",
  "title": "Follow-up suggestions",
  "description": "next questions under the latest answer · tapping one sends it",
  "dependencies": [],
  "registryDependencies": [
    "@kit-native/lib-haptics",
    "@kit-native/lib-utils",
    "@kit-native/text"
  ],
  "files": [
    {
      "path": "components/kit/follow-up-suggestions.tsx",
      "content": "import { Text } from '@/components/ui/text';\nimport { haptic } from '@/lib/haptics';\nimport { cn } from '@/lib/utils';\nimport { Pressable, View } from 'react-native';\n\ntype Props = {\n  /** Two to four next questions, phrased the way the person would ask them. */\n  suggestions: string[];\n  onSelect: (text: string) => void;\n  className?: string;\n};\n\n/** Next questions under the latest answer. Tapping one sends it. Hide them while the assistant answers. */\nexport function FollowUpSuggestions({ suggestions, onSelect, className }: Props) {\n  if (!suggestions.length) return null;\n  return (\n    <View role=\"group\" aria-label=\"Suggested follow-ups\" className={cn('flex-row flex-wrap gap-2', className)}>\n      {suggestions.map((s) => (\n        <Pressable\n          key={s}\n          accessibilityRole=\"button\"\n          onPress={() => {\n            haptic('selection');\n            onSelect(s);\n          }}\n          className=\"border-border bg-background active:bg-accent min-h-11 justify-center rounded-control border px-4 py-2\">\n          <Text className=\"text-sm font-medium\">{s}</Text>\n        </Pressable>\n      ))}\n    </View>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/kit/follow-up-suggestions.tsx"
    }
  ],
  "meta": {
    "exports": [
      "FollowUpSuggestions"
    ],
    "api": "<FollowUpSuggestions suggestions={[\"…\"]} onSelect />"
  },
  "docs": "Run `npx expo install --fix` afterwards so Expo SDK packages match your SDK. Needs the kit theme (`@kit-native/theme`) and `KitThemeProvider` from `@kit-native/lib-theme-context` at the root.",
  "categories": [
    "ai"
  ],
  "type": "registry:component"
}