File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/snaps-sdk/src/jsx/components Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11import { createSnapComponent } from '../component' ;
2-
3- /**
4- * Definition of Skeleton border radius.
5- */
6- export type SkeletonBorderRadius = 'none' | 'medium' | 'full' | undefined ;
2+ import type { BorderRadius } from './utils' ;
73
84/**
95 * The props of the {@link Skeleton} component.
@@ -15,7 +11,7 @@ export type SkeletonBorderRadius = 'none' | 'medium' | 'full' | undefined;
1511export type SkeletonProps = {
1612 width : number | string ;
1713 height : number | string ;
18- borderRadius ?: SkeletonBorderRadius | undefined ;
14+ borderRadius ?: BorderRadius | undefined ;
1915} ;
2016
2117const TYPE = 'Skeleton' ;
@@ -28,7 +24,7 @@ const TYPE = 'Skeleton';
2824 * @param props.width - Height of the Skeleton.
2925 * @param props.borderRadius - Border radius of the Skeleton.
3026 * @example
31- * <Skeleton height={32} width={ 50%} />
27+ * <Skeleton height={32} width=" 50%" />
3228 */
3329export const Skeleton = createSnapComponent < SkeletonProps , typeof TYPE > ( TYPE ) ;
3430
Original file line number Diff line number Diff line change 1+ /**
2+ * Definition of border radius.
3+ */
4+ export type BorderRadius = 'none' | 'medium' | 'full' | undefined ;
You can’t perform that action at this time.
0 commit comments