mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* feat :: temp commit added box shadow for freq used components * fix :: box shadow for all components * cleanup * review :: changes , sending boz shadow with styles * fix :: apply box shadow to the item instead of container * fix :: daterange picker shadows
17 lines
453 B
JavaScript
17 lines
453 B
JavaScript
import React from 'react';
|
|
|
|
export const Spinner = ({ styles, height, dataCy }) => {
|
|
const { colour, size, visibility, boxShadow } = styles;
|
|
|
|
const baseStyle = {
|
|
height,
|
|
display: visibility ? '' : 'none',
|
|
boxShadow,
|
|
};
|
|
|
|
return (
|
|
<div className="spinner-container" style={baseStyle} data-cy={dataCy}>
|
|
<div className={`spinner-border spinner-border-${size}`} role="status" style={{ color: colour }}></div>
|
|
</div>
|
|
);
|
|
};
|