Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Buttons

Button

Customizable buttons with multiple variants, sizes, and interactive states.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/button

Usage

import { Button } from "@/components/ui/preskok-ui/button"

export function ButtonDemo() {
  return (
    <Button intent="primary" size="md">
      Click me
    </Button>
  )
}

Props

PropTypeDefaultDescription
intent"primary" | "secondary" | "warning" | "danger" | "outline" | "plain""primary"Visual style variant
size"xs" | "sm" | "md" | "lg" | "sq-xs" | "sq-sm" | "sq-md" | "sq-lg""md"Button size
isCirclebooleanfalseCircular button shape
isPendingbooleanfalsePending, focusable state
isDisabledbooleanfalseDisabled state
classNamestring-Additional CSS classes
refReact.Ref<HTMLButtonElement>-Button element ref

React Aria button props such as onPress, type, isPending, and isDisabled are also supported. Use the Link component with buttonStyles for links that should look like buttons.

Examples

Features

  • Multiple variants - Six different visual styles
  • Flexible sizing - Regular and square size options
  • Icon support - Easy integration with icons
  • Pending state - React Aria isPending support with accessible progress semantics
  • Accessibility - Proper focus management and ARIA support
  • Link styling - Reuse buttonStyles on the Link component for semantic links

File Trigger

Select files, folders, or capture from camera with consistent button semantics.

Button Group

A component for grouping related buttons with horizontal or vertical orientation.

On this page

Installation
Usage
Props
Examples
Features
Docs
Docs