Skip to content

Input

import '@sbddesign/bui-ui/input.js'
<bui-input label="Send Bitcoin To" placeholder="₿stephen@twelve.cash"></bui-input>
PropertyAttributeTypeRequiredReflectedDescription
moodmoodstringNoYesInput mood: “neutral”, “caution”, “danger”, “success”
sizesizestringNoYesInput size: “large”, “small”
labellabelstringNoYesLabel text for the input
valuevaluestringNoYesInput value
placeholderplaceholderstringNoYesPlaceholder text
showLabelshow-labelbooleanNoYesWhether to show the label
showIconLeftshow-icon-leftbooleanNoYesWhether to show left icon
showIconRightshow-icon-rightbooleanNoYesWhether to show right icon
iconRightActionicon-right-actionstringNoNoAction for right icon click
  • neutral - Default neutral appearance
  • caution - Warning/caution styling
  • danger - Error/danger styling
  • success - Success/positive styling
  • large - Large input size
  • small - Small input size
  • Mood Styling: The mood property controls the visual state and styling of the input
  • Icon Support: Both left and right icons can be displayed independently
  • Label Display: The label can be shown or hidden with showLabel
  • Value Binding: The value property is two-way bound with the input content
  • Placeholder Text: Provides helpful hints when the input is empty
  • Right Icon Action: The right icon can have a click action defined

The input component emits standard input events:

  • input - When the input value changes
  • change - When the input value changes and loses focus
  • focus - When the input gains focus
  • blur - When the input loses focus
  • click - When the right icon is clicked (if iconRightAction is defined)