GitHub

DaffFlatButtonComponent

class

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

DaffFlatButtonComponent is a rectangular contained button no background.

@Component()
class DaffFlatButtonComponent {
  @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

Flat button

<button daff-flat-button>
 <div daffPrefix></div>
 Flat Button
 <div daffSuffix></div>
</button>

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

Flat button

<button daff-flat-button>
 <div daffPrefix></div>
 Flat Button
 <div daffSuffix></div>
</button>

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