summit-kit
Version:
A React component library for building modern web applications with an earthy and outdoorsy flair.
27 lines (26 loc) • 1.38 kB
TypeScript
import { ButtonHTMLAttributes } from 'react';
import { ClassesProps } from '../Types/general.ts';
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & ClassesProps;
/**
* Renders a primary styled button for form submissions.
*
* @param props - The properties for the button component.
* @param props.disabled - If `true`, the button will be disabled. Defaults to `false`.
* @param props.classes - Optional array of additional CSS class names to apply to the button.
* @param props.children - The content to be displayed inside the button.
* @returns A React element representing a styled submit button.
*/
export declare const PrimaryButton: ({ disabled, onClick, classes: extraClasses, children, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
/**
* Renders a secondary styled button component.
*
* @param props - The properties for the button component, including:
* - `disabled` (optional): Whether the button is disabled.
* - `onClick` (optional): Click event handler.
* - `classes` (optional): Additional CSS classes to apply.
* - `children`: The content to display inside the button.
*
* @returns A React button element with secondary styling.
*/
export declare const SecondaryButton: ({ disabled, onClick, classes: extraClasses, children, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
export {};