Spinner
▸ Spinner(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Loading indicator
Parameters
Name | Type |
---|---|
props | SpinnerProps & RefAttributes <HTMLDivElement (opens in a new tab)> |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Example
example.tsx
<Spinner description="loading" size={16} />
import React from 'react' import { Spinner } from '@vtex/shoreline-components' export default function App() { return (<> <Spinner description="loading" size={16} /> </> )}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355