Files
supabase/apps/ui-library/registry/examples.ts
Jonathan Summers-MuirandIvan Vasilov 846b470f9d chore: uses iframes for UI lib examples. (#34419)
* init

* Update component-preview.tsx

* please note: changed redirects in block, so need to update the logic to find and replace the redirects

* Fix the redirect urls to work when installing and in examples.

* Revert some of the changes.

* Add a step when building the registry to clean the registry of example code.

* Fix the clean registry script.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-03-26 11:16:09 +01:00

38 lines
811 B
TypeScript

import { type Registry } from 'shadcn/registry'
export const examples: Registry['items'] = [
{
name: 'dropzone-demo',
type: 'registry:example',
registryDependencies: [],
files: [
{
path: 'registry/default/examples/dropzone-demo.tsx',
type: 'registry:example',
},
],
},
{
name: 'realtime-cursor-demo',
type: 'registry:example',
registryDependencies: [],
files: [
{
path: 'registry/default/examples/realtime-cursor-demo.tsx',
type: 'registry:example',
},
],
},
{
name: 'password-based-auth-demo',
type: 'registry:example',
registryDependencies: [],
files: [
{
path: 'registry/default/examples/password-based-auth.tsx',
type: 'registry:example',
},
],
},
]