How to use the tinacms.Form function in tinacms

To help you get started, we’ve selected a few tinacms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinacms / tinacms / packages / react-tinacms-blocks / src / blocks.spec.tsx View on Github external
describe('Blocks', () => {
  const form = new Form({
    id: 'example',
    label: 'Example Form',
    fields: [],
    onSubmit() {},
  })

  describe('without data', () => {
    it('renders nothing into the containing element', () => {
      const renderedBlock = render(
        
      )

      expect(renderedBlock.container.children).toHaveLength(0)
    })
  })

tinacms

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

Apache-2.0
Latest version published 14 days ago

Package Health Score

87 / 100
Full package analysis