feat: added color support to spinner

pull/3281/head
yougotwill 3 months ago
parent ff0ecddbdd
commit c712e8311d

@ -4,6 +4,7 @@ type Props = {
loading: boolean;
height?: string;
width?: string;
color?: string;
};
const StyledSessionSpinner = styled.div<Props>`
@ -21,7 +22,7 @@ const StyledSessionSpinner = styled.div<Props>`
width: 13px;
height: 13px;
border-radius: 50%;
background: var(--primary-color);
background: ${props => props.color || 'var(--primary-color)'};
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
div:nth-child(1) {

Loading…
Cancel
Save