VISUALLIdesign system

Actions

Button

Text button with an optional leading or trailing icon.

Playground

Change the props, switch theme in the header, try Tablet and Phone widths, then copy the code.

Playground

Examples

Live previewOpen ↗

Props

export interface ButtonProps {
  variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
  size?: 'sm' | 'md' | 'lg';
  icon?: IconName;
  iconEnd?: IconName;
  loading?: boolean;
  block?: boolean;
  disabled?: boolean;
  onClick?: () => void;
  children?: ReactNode
}

Use

import { Button } from '@visualli/design-system/components';

Source: components/src/ · Guidelines: components/catalog/Button/README.md