VaneUI

VaneUI

Basic Components

Button

Triggers an action or event when the user clicks on it. Buttons are a primary way for users to interact with the application and can contain text, an icon, or both.

Basic Usage

Default button styles and variants.

react-icon

BasicUsage.tsx

<Row flexWrap>
<Button default>Button default</Button>
<Button accent>Button accent</Button>
<Button primary>Button primary</Button>
<Button secondary>Button secondary</Button>
<Button tertiary>Button tertiary</Button>
<Button success>Button success</Button>
<Button danger>Button danger</Button>
<Button warning>Button warning</Button>
<Button info>Button info</Button>
<Button link>Button link</Button>
</Row>

Sizes

Buttons come in different sizes - xs, sm, md, lg, xl.

react-icon

Sizes.tsx

<Row flexWrap>
<Button xs>Button xs</Button>
<Button sm>Button sm</Button>
<Button md>Button md</Button>
<Button lg>Button lg</Button>
<Button xl>Button xl</Button>
</Row>

Sizes with Icon

Buttons come in different sizes such as xs, sm, md, lg, xl.

react-icon

SizeswithIcon.tsx

<Row flexWrap>
<Button xs>
<span className="rounded-full size-4 bg-gray-300" />
Extra Small
</Button>
<Button sm>
<span className="rounded-full size-4.5 bg-gray-300" />
Small
</Button>
<Button md>
<span className="rounded-full size-5 bg-gray-300" />
Medium
</Button>
<Button lg>
<span className="rounded-full size-6 bg-gray-300" />
Large
</Button>
<Button xl>
<span className="rounded-full size-7 bg-gray-300" />
Extra Large
</Button>
</Row>

Font Weights

Buttons support different font weights.

react-icon

FontWeights.tsx

<Row flexWrap>
<Button thin>Button thin</Button>
<Button extralight>Button extralight</Button>
<Button light>Button light</Button>
<Button normal>Button normal</Button>
<Button medium>Button medium</Button>
<Button semibold>Button semibold</Button>
<Button bold>Button bold</Button>
<Button extrabold>Button extrabold</Button>
<Button black>Button black</Button>
</Row>

Border Radius Options

Button supports three border radius styles: rounded (default), pill, and sharp.

react-icon

BorderRadiusOptions.tsx

<Row flexWrap>
<Button pill>Button pill</Button>
<Button sharp>Button sharp</Button>
<Button rounded>Button rounded</Button>
</Row>

Button Styles

Buttons can be styled as outline (default) or filled.

react-icon

ButtonStyles.tsx

<Col>
<Row flexWrap>
<Button default filled>filled default</Button>
<Button accent filled>filled accent</Button>
<Button filled primary>filled primary</Button>
<Button filled secondary>filled secondary</Button>
</Row>
<Row flexWrap>
<Button default outline>outline default</Button>
<Button accent outline>outline accent</Button>
<Button outline primary>outline primary</Button>
<Button outline secondary>outline secondary</Button>
</Row>
</Col>

Button Props

size

  • xs
  • sm
  • md
  • lg
  • xl
  • hide

  • xsHide
  • smHide
  • mdHide
  • lgHide
  • xlHide
  • items

  • itemsStart
  • itemsEnd
  • itemsCenter
  • itemsBaseline
  • itemsStretch
  • justify

  • justifyStart
  • justifyEnd
  • justifyCenter
  • justifyBetween
  • justifyAround
  • justifyEvenly
  • justifyStretch
  • justifyBaseline
  • position

  • relative
  • absolute
  • fixed
  • sticky
  • static
  • display

  • inline
  • block
  • inlineBlock
  • flex
  • inlineFlex
  • grid
  • inlineGrid
  • contents
  • table
  • tableCell
  • hidden
  • overflow

  • overflowAuto
  • overflowHidden
  • overflowClip
  • overflowVisible
  • overflowScroll
  • overflowXAuto
  • overflowYAuto
  • overflowXHidden
  • overflowYHidden
  • overflowXClip
  • overflowYClip
  • overflowXVisible
  • overflowYVisible
  • overflowXScroll
  • overflowYScroll
  • wrap

  • flexWrap
  • flexNoWrap
  • flexWrapReverse
  • gap

  • gap
  • noGap
  • flexDirection

  • row
  • column
  • rowReverse
  • columnReverse
  • reverse

  • reverse
  • appearance

  • default
  • accent
  • primary
  • secondary
  • tertiary
  • success
  • danger
  • warning
  • info
  • link
  • transparent

  • transparent
  • border

  • border
  • borderT
  • borderB
  • borderL
  • borderR
  • borderX
  • borderY
  • noBorder
  • shadow

  • shadow
  • noShadow
  • ring

  • ring
  • noRing
  • focusVisible

  • focusVisible
  • noFocusVisible
  • shape

  • pill
  • sharp
  • rounded
  • fontWeight

  • thin
  • extralight
  • light
  • normal
  • medium
  • semibold
  • bold
  • extrabold
  • black
  • fontStyle

  • italic
  • notItalic
  • textDecoration

  • underline
  • lineThrough
  • noUnderline
  • overline
  • textTransform

  • uppercase
  • lowercase
  • capitalize
  • normalCase
  • fontFamily

  • sans
  • serif
  • mono
  • textAlign

  • textLeft
  • textCenter
  • textRight
  • textJustify
  • padding

  • padding
  • noPadding
  • variant

  • filled
  • outline