import React from 'react' // ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ /** Takes loading prop, input component as child */ interface Props { // ^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props# // documentation ```ts\ninterface Props\n``` // documentation Takes loading prop, input component as child loading: boolean // ^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading. // documentation ```ts\n(property) loading: boolean\n``` children: React.ReactNode // ^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#children. // documentation ```ts\n(property) children: ReactNode\n``` // ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ // ^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ReactNode# } export const LoaderInput: React.FunctionComponent = ({ // ^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput. // documentation ```ts\nvar LoaderInput: FunctionComponent\n``` // ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ // ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent# // ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props# loading, // ^^^^^^^ reference local 3 children, // ^^^^^^^^ reference local 4 }) => (
// ^^^ reference @types/react 17.0.0 `index.d.ts`/global/JSX/IntrinsicElements#div. // ^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/HTMLAttributes#className. {children} // ^^^^^^^^ reference local 4 {loading &&

spinner

} // ^^^^^^^ reference local 3 // ^ reference @types/react 17.0.0 `index.d.ts`/global/JSX/IntrinsicElements#p. // ^ reference @types/react 17.0.0 `index.d.ts`/global/JSX/IntrinsicElements#p.
// ^^^ reference @types/react 17.0.0 `index.d.ts`/global/JSX/IntrinsicElements#div. ) export const LoaderInput2: React.FunctionComponent = props => { // ^^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2. // documentation ```ts\nvar LoaderInput2: FunctionComponent\n``` // ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ // ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent# // ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props# // ^^^^^ definition local 6 // documentation ```ts\n(parameter) props: PropsWithChildren\n``` return // ^^^^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput. // ^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading. // ^^^ reference local 10 // ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children. // ^^^^^ reference local 6 // ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children. // ^^^^^^^^ reference local 13 }