Skip to main content

Button

About 1857 wordsAbout 6 min

Button

installation

import { FgButton } from 'fadgram-vue'

Props

PropTypeDefaultDescription
type'button' | 'submit' | 'reset''button'The native button type attribute.
colorButtonColor—Color variant. Options: primary, secondary, light, dark, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, slate, gray, zinc, neutral, stone.
iconstring—Icon name to display (requires icon component).
labelstring—Text label for the button.
classstring—Custom CSS classes to apply.
outlinebooleanfalseWhether to use outline style.
pillbooleanfalseWhether to use pill-shaped rounded corners.
gradientbooleanfalseWhether to apply gradient background.
size'xs' | 'sm' | 'default' | 'lg' | 'xl' | 'xxl'—Direct size specification (overrides individual size props).
xsbooleanfalseExtra small size (alternative to size prop).
smbooleanfalseSmall size (alternative to size prop).
lgbooleanfalseLarge size (alternative to size prop).
xlbooleanfalseExtra large size (alternative to size prop).
xxlbooleanfalseExtra extra large size (alternative to size prop).

Basic usage

Preview

Label & icon

shortness slots

Label

Preview

Icon

Preview

label and Icon

Preview

Color

Preview

Gradient

Preview

Outline

Preview

Pill

Preview

Merge appearance

Gradient pill

Preview

Outline pill

Preview

Size

Preview