Current Path: > home > codekrsu > > shopceylon.store > wp-content > plugins > code-snippets > js > components > common
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Button.tsx | File | 810 bytes | November 27 2024 21:52:46. | |
ConfirmDialog.tsx | File | 1124 bytes | February 14 2025 13:16:14. | |
CopyToClipboardButton.tsx | File | 1071 bytes | February 14 2025 13:16:14. |
import React from 'react' import classnames from 'classnames' import type { ButtonHTMLAttributes } from 'react' export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'id' | 'name'> { id?: string name?: string primary?: boolean small?: boolean large?: boolean } export const Button: React.FC<ButtonProps> = ({ id, children, className, name = 'submit', primary = false, small = false, large = false, type = 'button', onClick, ...props }) => <button id={id ?? name} name={name} type={type} {...props} onClick={event => { if (onClick) { event.preventDefault() onClick(event) } }} className={classnames('button', className, { 'button-primary': primary, 'button-large': large, 'button-small': small })} > {children} </button>
SILENT KILLER Tool