@avidly/js-fields
v0.5.42
Published
Avidly HubSpot javascript fields
Downloads
1,781
Readme
Install
- Install Node, NPM
- Install Yarn
npm install --global bun
- run
bun install
Deploy
- run
bun run build
Using
bun add --dev @igomoon/hubspot-fields-js @avidly/types
Using in app
- In fields.js file
const { Field, Group } = require('@igomoon/hubspot-fields-js');
const { UtilFields, AFields } = require('@avidly/avidly-fields');
module.exports = [
UtilFields.variantField({ simple: true }),
UtilFields.pageWidthField(),
UtilFields.headingField({ simple: true }),
new Group()
.name('links', 'Items')
.children([
Field.text().name('text', 'Text').default('Title'),
Field.richText().name('content', 'Content')
])
.repeat()
];