Skip to content

Commit 790863f

Browse files
committed
feat: add props for activity indicator for background class and icon size
1 parent 731d398 commit 790863f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { ActivityIndicatorProps } from './types'
22

3-
const ActivityIndicator = ({ rootClassName = '' }: ActivityIndicatorProps) => (
4-
<div className={`dc__border-radius-50-per bcr-5 icon-dim-6 ${rootClassName}`} />
3+
const ActivityIndicator = ({
4+
rootClassName = '',
5+
backgroundColorClass = 'bcr-5',
6+
iconSizeClass = 'icon-dim-6',
7+
}: ActivityIndicatorProps) => (
8+
<div className={`dc__border-radius-50-per ${backgroundColorClass} ${iconSizeClass} ${rootClassName}`} />
59
)
610

711
export default ActivityIndicator
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export interface ActivityIndicatorProps {
22
rootClassName?: string
3+
backgroundColorClass?: string
4+
iconSizeClass?: string
35
}

0 commit comments

Comments
 (0)