summit-kit
Version:
A React component library for building modern web applications with with an earthy and outdoorsy flair.
30 lines (29 loc) • 1.3 kB
TypeScript
import { StandardProps } from '../Types/general.ts';
type ButtonProps = {
disabled?: boolean;
};
/**
* Renders a primary styled button for form submissions.
*
* @param props - The properties for the button component, combining `ButtonProps` and `StandardProps`.
* @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: (props: ButtonProps & StandardProps) => 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: (props: ButtonProps & StandardProps & {
onClick?: () => void;
}) => import("react/jsx-runtime").JSX.Element;
export {};