vulcan-npm
vulcan-npm copied to clipboard
component override
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| vulcan-docs | ✅ Ready (Inspect) | Visit Preview | Sep 30, 2022 at 0:37AM (UTC) |
| vulcan-npm | ❌ Failed (Inspect) | Sep 30, 2022 at 0:37AM (UTC) |
Not needed imo, this is equivalent to what your are trying to achieve
// eg if Loading allows to override its Button locally
const Loading = ({components}: { components: Partial<Pick<VulcanCoreComponents, "Button">>) => {
const VulcanComponents = useVulcanComponents()
const Components = {...components, ...VulcanComponents }
return (<Components.Button>Loading...</Components.Button>)
}