Button

Type: React component

Creates a button with an optional Label and Icon before and/or after. Button supports multiple "types" which alters the visual representation of the button.

Keyboard behavior:

  • Enter: call the onClick prop when focused, isDisabled is false and hasKeyboardBehavior is true.

Props

  1. hasKeyboardBehavior

    (Optional)

    Default value

  2. icon

    (Optional)

    Type: FDS~Icon

    Default value

  3. iconAfter

    (Optional)

    Default value

  4. isBorderless

    (Optional)

    Type: Boolean

    Default value

  5. isDisabled

    (Optional)

    Default value

  6. isFullWidth

    (Optional)

    Default value

  7. isHighlighted

    (Optional)

    Default value

  8. isSelected

    (Optional)

    Default value

  9. label

    (Optional)

    Type: FDS~Label

    Default value

  10. onClick

    (Optional)

    Default value

  11. onRef

    (Optional)

    Default value

  12. tooltipContent

    (Optional)

    Default value

  13. type

    (Optional)

    Type: String

    Default value