typeNative button behavior. menu renders as a plain button.
type
"button""submit""reset""menu"
"button"
nameForm field name.
name
string
None
valueForm field value.
value
string
None
labelOptional label set via attribute; the default slot takes precedence.
label
string
None
iconPositionWhere the icon sits relative to the label.
icon-positionreflected
"before""after"
"before"
titleNative title (tooltip) text.
title
string
""
ariaLabelAccessible name, forwarded to the native button inside the shadow root. A custom-element host is not the button in the accessibility tree, so an aria-label left on <dj-button> names nothing. IDREF attributes (aria-labelledby, aria-describedby, aria-controls) are deliberately NOT forwarded: an IDREF inside a shadow root cannot resolve to a light-DOM id, so forwarding one would create a dangling reference that reads as working.
aria-labelreflected
string | null
null
ariaPressedToggle state for a button used as a toggle, forwarded alongside the name.
aria-pressedreflected
string | null
null
ariaExpandedDisclosure state for a button that controls a panel, forwarded alongside the name.