pillardash-ui-react 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,16 +2,28 @@ import React$1, { FC, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } f
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
 
4
4
  interface ButtonProps {
5
+ /** The content of the button */
5
6
  children: ReactNode;
6
- onClick?: () => void;
7
+ /** Click handler function */
8
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
9
+ /** HTML button type attribute */
7
10
  type?: "button" | "submit" | "reset";
11
+ /** Size of the button */
8
12
  size?: "small" | "medium" | "large";
13
+ /** Visual style variant */
9
14
  variant?: "primary" | "secondary" | "dark" | "neutral";
15
+ /** Disabled state of the button */
10
16
  disabled?: boolean;
17
+ /** Additional CSS classes */
11
18
  className?: string;
19
+ /** Optional icon to display before text */
12
20
  icon?: ReactNode;
21
+ /** Loading state - shows spinner */
13
22
  loading?: boolean;
23
+ /** Outline style instead of solid */
14
24
  outline?: boolean;
25
+ /** Position of the icon relative to text */
26
+ iconPosition?: "left" | "right";
15
27
  }
16
28
  declare const Button: FC<ButtonProps>;
17
29