BaseButton

readyNot reviewed for a11y
This page may be removed. Primer plans to move all Rails component documentation to Lookbook.

Description

Use BaseButton to render an unstyled <button> tag that can be customized.

Arguments

NameRequiredDescription
tag
Symbol

One of :a, :button, :clipboard-copy, or :summary.

type
Symbol

One of :button, :reset, or :submit.

block
Boolean

Whether button is full-width with display: block.

disabled
Boolean

Whether or not the button is disabled. If true, this option forces tag: to :button.

inactive
Boolean

Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button.

system_arguments

Methods

disabled

Returns the value of attribute disabled.

disabled?

Returns the value of attribute disabled.