{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "list",
  "title": "List",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/list/List.tsx",
      "content": "import * as React from 'react'\nimport { Pressable, View, type PressableProps, type ViewProps } from 'react-native'\nimport { Text, type TextProps } from '@/components/ui/text'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\ntype ListViewProps = ViewProps & { className?: string }\n\nexport const List = React.forwardRef<React.ComponentRef<typeof View>, ListViewProps>(({ className, ...props }, ref) => (\n  <View ref={ref} className={cn('overflow-hidden rounded-lg border border-border bg-card', className)} {...props} />\n))\nList.displayName = 'List'\n\nexport interface ListItemProps extends Omit<PressableProps, 'children' | 'style'> {\n  children?: React.ReactNode\n  className?: string\n  style?: ViewProps['style']\n}\n\nexport const ListItem = React.forwardRef<React.ComponentRef<typeof Pressable>, ListItemProps>(\n  ({ className, children, onPress, onLongPress, disabled, accessibilityState, style, ...props }, ref) => {\n    const classes = cn('min-h-[48px] flex-row items-center gap-[12px] px-4 py-3', disabled && 'opacity-50', className)\n    if (!onPress && !onLongPress) {\n      return (\n        <View ref={ref} {...props} accessibilityState={accessibilityState} className={classes} style={style}>\n          {renderTextChildren(children)}\n        </View>\n      )\n    }\n    return (\n      <Pressable\n        ref={ref}\n        {...props}\n        accessibilityRole={props.accessibilityRole ?? 'button'}\n        accessibilityState={{ ...accessibilityState, disabled: !!disabled }}\n        disabled={disabled}\n        style={style}\n        onPress={onPress}\n        onLongPress={onLongPress}\n        className={cn(classes, 'active:bg-muted')}\n      >\n        {renderTextChildren(children)}\n      </Pressable>\n    )\n  },\n)\nListItem.displayName = 'ListItem'\n\nexport const ListItemContent = React.forwardRef<React.ComponentRef<typeof View>, ListViewProps>(\n  ({ className, ...props }, ref) => <View ref={ref} className={cn('min-w-0 flex-1 gap-1', className)} {...props} />,\n)\nListItemContent.displayName = 'ListItemContent'\n\nexport const ListItemTitle = React.forwardRef<React.ComponentRef<typeof Text>, TextProps>(\n  ({ className, ...props }, ref) => <Text ref={ref} className={cn('font-medium', className)} {...props} />,\n)\nListItemTitle.displayName = 'ListItemTitle'\n\nexport const ListItemDescription = React.forwardRef<React.ComponentRef<typeof Text>, TextProps>((props, ref) => (\n  <Text ref={ref} size=\"sm\" variant=\"muted\" {...props} />\n))\nListItemDescription.displayName = 'ListItemDescription'\n\nexport { Separator as ListSeparator } from '@/components/ui/separator'\n",
      "type": "registry:ui",
      "target": "~/components/ui/list/List.tsx"
    },
    {
      "path": "packages/registry-native/components/list/index.ts",
      "content": "export * from './List'\n",
      "type": "registry:ui",
      "target": "~/components/ui/list/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/text.json",
    "https://native.uipkge.dev/r/native/separator.json",
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Composable native list surface and static or pressable items with caller-owned row content.",
  "categories": [
    "layout"
  ]
}