Shared Package Library

CtaButtonFromEntry

Primitives
sub-component

import { CtaButtonFromEntry } from "@dertour/ui/components/ui/CtaButton"

packages/ui/src/components/ui/CtaButton.tsx · not yet imported by any brand app

Convenience helper: render a CtaButton directly from a Contentful CTA entry. `href` is optional on the merged `Global_Element_Cta_001` (migration 0067 absorbed `Global_Nav_Link_001`/`Global_Footer_Link_001`/ `Global_Footer_SocialLink_001`, only two of which require it — enforced in Zod, not Contentful) — a CTA entry authored with no href renders nothing rather than a dead button.


Loading demo…