Skip to content

ButtonAdd

The FTButtonAdd component provides an inline "add item" affordance — a full-width button typically placed at the bottom of a list or table to invite the user to add a new row or entry.

Basic usage

vue
<script lang="ts" setup>
import { FTButtonAdd } from '@fasttrack-solutions/vue-components-lib';
</script>

<template>
  <FTButtonAdd label="Add item" />
</template>
<script lang="ts" setup>
import { FTButtonAdd } from '@fasttrack-solutions/vue-components-lib';
</script>

<template>
  <FTButtonAdd label="Add item" />
</template>

Playground

Properties

<template>
  <FTButtonAdd />
</template>

The default slot overrides the label prop and accepts any markup.

Props

NameTypeDefaultDescription
labelstring'Add item'Button label text
disabledbooleanfalseDisables the button and fades icon and label

Slots

NameDescription
defaultOverrides the label prop with any markup

CSS

CSS VariableDefault ValueDescription
--ft-button-add-height67pxHeight of the button
--ft-button-add-padding12pxHorizontal padding