npm i --save @hydrofoil/alcaeus-forms
Here's an example showing how form is used with lit-html
import { Hydra } from 'alcaeus'
import { html } from 'lit-html'
import '@hydrofoil/alcaeus-forms/alcaeus-form'
const resource = (await Hydra.loadResource('http://hydra-movies.herokuapp.com/')).root
const collection = resource.getCollections()[0]
resource.operations.find(op => op.method === 'POST')
const form = html`<alcaeus-form .operation="${operation}"></alcaeus-form>`