Capítulo 106 de 108
Any publicly hosted registry item can be opened directly in v0 via https://v0.dev/chat/api/open?url=[URL], with a ready-made button component to drop into a registry's docs site.
https://v0.dev/chat/api/open?url=<item-json-url> loads that registry item's content into a new v0 chat.cssVars, css, envVars, namespaced registries, or advanced auth (Bearer/API-key headers).?token=...); server validates and returns 401 on failure, same convention as the CLI.export function OpenInV0Button({ url }: { url: string }) {
return (
<Button asChild>
<a href={`https://v0.dev/chat/api/open?url=${url}`} target="_blank" rel="noreferrer">
Open in v0
</a>
</Button>
)
}
https://registry.company.com/r/hello-world.json?token=your_secure_token_here
cssVars/css/envVars showing up correctly via Open in v0: those fields are ignored by this integration; test the full CLI add flow separately.token is supported here.npx shadcn add instead.cssVars, css, envVars) that Open in v0 silently drops.