Skip to main content
Version: 1.x

@microsoft/fast-foundation > Button

Button class

A Button Custom HTML Element. Based largely on the <button> element.

start - Content which can be provided before the button content

end - Content which can be provided after the button content

  • The default slot for button content

control - The button element

content - The element wrapping button content

Signature:
export declare class Button extends FormAssociatedButton 

Properties

PropertyModifiersTypeDescription
autofocusbooleanDetermines if the element should receive document focus on page load.
controlHTMLButtonElement
defaultSlottedContentHTMLElement[]Default slotted content
formactionstringSee <button> element for more details.
formenctypestringSee <button> element for more details.
formIdstringThe id of a form to associate the element to.
formmethodstringSee <button> element for more details.
formnovalidatebooleanSee <button> element for more details.
formtarget"_self" | "_blank" | "_parent" | "_top"See <button> element for more details.
type"submit" | "reset" | "button"The button type.