UNPKG

@coreui/react

Version:

UI Components Library for React.js

33 lines (32 loc) 1.12 kB
import React, { ButtonHTMLAttributes, ReactNode } from 'react'; export interface CSearchButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> { /** * Content to customize the full button body. */ children?: ReactNode; /** * A string of all className you want applied to the base component. */ className?: string; /** * Custom icon displayed before the placeholder text. */ icon?: ReactNode; /** * Placeholder content rendered inside `.search-button-placeholder`. */ placeholder?: ReactNode; /** * Callback fired when the component is activated by click or keyboard shortcut. */ onTrigger?: () => void; /** * Prevent the browser's default behavior when the configured shortcut matches. */ preventDefault?: boolean; /** * Comma-separated shortcut list. The component matches all configured shortcuts and renders the platform-preferred one. */ shortcut?: string; } export declare const CSearchButton: React.ForwardRefExoticComponent<CSearchButtonProps & React.RefAttributes<HTMLButtonElement>>;