GitHub

DaffUnderlineButtonComponent

class

import { DaffUnderlineButtonComponent } from '@daffodil/design/button'

DaffUnderlineButtonComponent is a borderless button with a custom underline style.

@Component()
class DaffUnderlineButtonComponent {
  @Input() status: DaffStatus
  @Input() color: DaffPalette
  @Input() tabindex: number = 0
  @Input() disabled: any
}

Inputs

status
DaffStatus
Default –
Description

Sets the status on a component.

Options are: info, warn, critical, and success.

color
DaffPalette
Default –
Description

Sets the color on a component.

Default options are: primary, secondary, tertiary, light, dark, theme, and theme-contrast.

tabindex
number
Default0
Description

Sets the tabindex.

disabled
any
Default –
Description

The disabled state of the button.

Examples

Underline button

<button daff-underline-button>
 <div daffPrefix></div>
 Underline Button
 <div daffSuffix></div>
</button>

<a href="/" daff-underline-button>
 <div daffPrefix></div>
 Linked underline button
 <div daffSuffix></div>
</a>

Underline button

<button daff-underline-button>
 <div daffPrefix></div>
 Underline Button
 <div daffSuffix></div>
</button>

<a href="/" daff-underline-button>
 <div daffPrefix></div>
 Linked underline button
 <div daffSuffix></div>
</a>