@yext/cta-formatter
v1.0.0
Published
Tools for formatting Yext CTA field types
Downloads
2,765
Maintainers
Keywords
Readme
cta-formatter
Provides methods for formatting Yext CTA types
Install
Include the library npm package in your package.json.
npm install @yext/cta-formatter
Usage
Import the formatter and use a function with the CTA object as a parameter.
import CtaFormatter from '@yext/cta-formatter';
CtaFormatter.generateCTAFieldTypeLink(ctaObject); // your Yext CTA object as a parameter