Call To Action
A button following Caraways style guide
🗄File Path
src/components/CallToAction
- Primary
- Secondary
- Secondary Collection
- Tertiary
- Checkout
Default
Hover
Default
Default
Hover
Default
Hover
Default
Hover
Available Props
Props | Type | Description | Default | Required |
---|---|---|---|---|
cta | object | cta data return from contentful | null | true |
onClick | function | onClick if needed | null | false |
Contentful
Below are Contentful details to render the desired component.
Content Model Reference
Contentful CTA Walkthough.
Enter the CTA label, a page or an external url, and your CTA type.
Text | Page, Product, or Article | Url | Button STyle |
---|---|---|---|
Button label | not required Link to page | not require External Link | Decorates button reference 👆🏼 |