Pular para o conteúdo principal

Button

Import

import { Button } from '@resultadosdigitais/tangram-components'

Properties

as

TypeelementType | string

Description

Set element type to be rendered for this component. By default it will be render a <button> element.

children

Typeelement | string | array | node
Default''

Description

Sets button children.

type

Type
Enum of:
  • Button.types.button
  • Button.types.submit
  • Button.types.reset
DefaultButton.types.button

Description

Sets button type.

kind

Type
Enum of:
  • Button.kinds.primary
  • Button.kinds.secondary
  • Button.kinds.tertiary
  • Button.kinds.neutral
  • Button.kinds.danger
DefaultButton.kinds.primary

Description

Sets button kind for styling.

size

Type
Enum of:
  • Button.sizes.sm
  • Button.sizes.md
DefaultButton.sizes.md

Description

Sets the button size.

startIcon

Typenode
Defaultnull

Description

Sets icon to be displayed at the beginning of the line.

endIcon

Typenode
Defaultnull

Description

Sets icon to be displayed at the end of the line.

loading

Typebool
Defaultfalse

Description

Sets loading appearance. When loading is true, then disabled is true.

fluid

Typebool
Defaultfalse

Description

Makes Button full-width

Feedback