{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/table-11","type":"registry:component","title":"Table 11","description":"A table with sticky first column that remains fixed during horizontal scrolling","registryDependencies":["table"],"files":[{"path":"src/registry/new-york/components/table/table-11.tsx","content":"import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/registry/new-york/ui/table'\n\nconst invoices = [\n  {\n    id: 1,\n    name: 'Alice Smith',\n    occupation: 'Software Engineer',\n    employer: 'Alpha Tech',\n    email: 'alice@example.com',\n    location: 'United States',\n    lastaccess: '12/16/2021',\n    salary: '$120,000'\n  },\n  {\n    id: 2,\n    name: 'Bob Johnson',\n    occupation: 'Marketing Manager',\n    employer: 'Beta Corp',\n    email: 'bob@example.com',\n    location: 'Canada',\n    lastaccess: '11/05/2021',\n    salary: '$100,000'\n  },\n  {\n    id: 3,\n    name: 'Charlie Brown',\n    occupation: 'Graphic Designer',\n    employer: 'Gamma Studios',\n    email: 'charlie@example.com',\n    location: 'United Kingdom',\n    lastaccess: '09/20/2022',\n    salary: '$75,000'\n  },\n  {\n    id: 4,\n    name: 'Dora Emily',\n    occupation: 'HR Manager',\n    employer: 'Delta Corp',\n    email: 'dora@example.com',\n    location: 'Australia',\n    lastaccess: '08/10/2020',\n    salary: '$40,000'\n  },\n  {\n    id: 5,\n    name: 'Ethan Hunt',\n    occupation: 'Secret Agent',\n    employer: 'Eagle Eye',\n    email: 'ethan@example.com',\n    location: 'India',\n    lastaccess: '11/20/2021',\n    salary: '$220,000'\n  },\n  {\n    id: 6,\n    name: 'Fiona Brown',\n    occupation: 'Financial Analyst',\n    employer: 'Fox Finance',\n    email: 'fiona@example.com',\n    location: 'France',\n    lastaccess: '07/05/2021',\n    salary: '$150,000'\n  },\n  {\n    id: 7,\n    name: 'George Wilson',\n    occupation: 'Project Manager',\n    employer: 'Gazelle Technologies',\n    email: 'george@example.com',\n    location: 'Brazil',\n    lastaccess: '05/25/2021',\n    salary: '$135,000'\n  }\n]\n\nconst StickyColumnTableDemo = () => {\n  return (\n    <div className='w-full'>\n      <div className='mx-auto max-w-2xl [&>div]:rounded-sm [&>div]:border'>\n        <Table>\n          <TableHeader>\n            <TableRow className='hover:bg-transparent'>\n              <TableHead className='bg-background sticky left-0'>ID</TableHead>\n              <TableHead className='bg-background sticky left-7.5'>Name</TableHead>\n              <TableHead>Occupation</TableHead>\n              <TableHead>Employer</TableHead>\n              <TableHead>Email</TableHead>\n              <TableHead>Location</TableHead>\n              <TableHead>Last Access</TableHead>\n              <TableHead>Salary</TableHead>\n            </TableRow>\n          </TableHeader>\n          <TableBody>\n            {invoices.map(invoice => (\n              <TableRow key={invoice.id} className='hover:bg-transparent'>\n                <TableCell className='bg-background sticky left-0 font-medium'>{invoice.id}</TableCell>\n                <TableCell className='bg-background sticky left-7.5'>{invoice.name}</TableCell>\n                <TableCell>{invoice.occupation}</TableCell>\n                <TableCell>{invoice.employer}</TableCell>\n                <TableCell>{invoice.email}</TableCell>\n                <TableCell>{invoice.location}</TableCell>\n                <TableCell>{invoice.lastaccess}</TableCell>\n                <TableCell>{invoice.salary}</TableCell>\n              </TableRow>\n            ))}\n          </TableBody>\n        </Table>\n      </div>\n      <p className='text-muted-foreground mt-4 text-center text-sm'>Sticky column table</p>\n    </div>\n  )\n}\n\nexport default StickyColumnTableDemo\n","type":"registry:component","target":"components/shadcn-studio/table/table-11.tsx"}]}