CRUDUI

Home > @polyspec/crudui-validator > FormButton

FormButton interface

One form button. A button or link needs text; a link needs href.

Signature:

export interface FormButton 

Properties

Property

Modifiers

Type

Description

behavior?

Slot<BehaviorSlot>

(Optional) Opaque behavior scripts.

design?

Slot<DesignSlot>

(Optional) Button appearance.

href?

string

(Optional) Link target.

name?

string

(Optional) Submitted name.

text?

LocalizedText

(Optional) Button text; submit and reset default to interface text.

type

'submit' | 'reset' | 'button' | 'link'

Button type; a link renders an anchor.

value?

string

(Optional) Submitted value.