Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/inputs/Checkbox.tsx
10263 views
1
import React, { forwardRef } from 'react';
2
import classNames from 'classnames';
3
import styles from './styles.module.css';
4
5
type Props = Omit<React.ComponentProps<'input'>, 'type'>;
6
7
export default forwardRef<HTMLInputElement, Props>(({ className, ...props }, ref) => (
8
<input
9
ref={ref}
10
type={'checkbox'}
11
className={classNames('form-input', styles.checkbox_input, className)}
12
{...props}
13
/>
14
));
15
16