UNPKG

jb-payment-input-react

Version:
26 lines (25 loc) 971 B
import React from 'react'; import { type Props as JBInputProps } from 'jb-input/react'; import 'jb-payment-input'; import { JBPaymentInputWebComponent } from 'jb-payment-input'; import { PaymentInputType } from 'jb-payment-input/types.js'; declare global { namespace JSX { interface IntrinsicElements { 'jb-payment-input': JBSearchbarType; } interface JBSearchbarType extends React.DetailedHTMLProps<React.HTMLAttributes<JBPaymentInputWebComponent>, JBPaymentInputWebComponent> { "class"?: string; "type"?: string; "label"?: string; "message"?: string; "placeholder"?: string; } } } declare const JBPaymentInput: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>; export type Props = JBInputProps & { inputType?: PaymentInputType | null; separator?: string | null; }; export { JBPaymentInput };