[react] feat: Added docs for components/Spinner
This commit is contained in:
parent
bc8b495d1c
commit
4ba8b50b2c
4 changed files with 38 additions and 5 deletions
|
@ -1,7 +1,12 @@
|
|||
import React from 'react'
|
||||
|
||||
/*
|
||||
* A simple spinner
|
||||
/**
|
||||
* A component to render a loading spinner
|
||||
*
|
||||
* @component
|
||||
* @param {object} props - All component props
|
||||
* @param {strign} [props.className = 'tw:h-6 tw:w-6'] - CSS classes to apply to the spinner
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
export const Spinner = ({ className = 'tw:h-6 tw:w-6' }) => (
|
||||
<svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue