Skip to content
On this page

WARNING

While the documentation is fairly complete, it is still in first draft.

Form (BonesForm)

Overview

The Barebones Form component is form helper used to wrap the Barebones form components. The form defaults to post.

Component parts

Part nameDescription
componentThe components root element.

Props

Prop nameDescription
actionaction is required and accepts an action URL
methodmethod accepts POST or GET. The default is POST
encodeencode accepts an enctype for DEFAULT or MEDIA, MEDIA should be used when uploading files. The default value is DEFAULT

Slots

Slot nameDescription
defaultThe default slot is provided by Vue

Component Type

export interface Form {
  parts: Parts;
}

Examples

Code

<BonesForm action="/endpoint"></BonesForm>