reablocks
Version:
Component library for React
41 lines (40 loc) • 1.08 kB
TypeScript
import { FC, PropsWithChildren } from 'react';
import { NavigationButtonVariantTheme, NavigationTheme } from './NavigationTheme';
interface NavigationButtonProps extends PropsWithChildren {
/**
* Custom class names for the navigation button.
*/
className?: string;
/**
* Variant of the navigation button.
* @default 'ghost'
*/
variant?: keyof NavigationButtonVariantTheme;
/**
* Indicates if the button is active.
*/
active?: boolean;
/**
* Custom theme for the navigation button.
*/
theme?: NavigationTheme;
/**
* Disables the button, preventing interaction.
*/
disabled?: boolean;
/**
* If false, the animation of the button will be disabled.
* @default true
*/
animated?: boolean;
/**
* Unique identifier for the animation layout.
*/
animationLayoutId?: string;
/**
* Callback function to handle click events on the button.
*/
onClick?: () => void;
}
export declare const NavigationButton: FC<NavigationButtonProps>;
export {};