File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
15
15
} as ComponentMeta < typeof Hourglass > ;
16
16
17
17
export function Default ( ) {
18
- return < Hourglass size = { 32 } /> ;
18
+ return < Hourglass size = { 32 } style = { { margin : 20 } } /> ;
19
19
}
20
20
21
21
Default . story = {
Original file line number Diff line number Diff line change 1
1
import React , { forwardRef } from 'react' ;
2
2
import styled from 'styled-components' ;
3
3
import { getSize } from '../common/utils' ;
4
+ import { CommonStyledProps } from '../types' ;
4
5
import base64hourglass from './base64hourglass' ;
5
6
6
7
type HourglassProps = {
7
8
size ?: string | number ;
8
- } ;
9
+ } & React . HTMLAttributes < HTMLDivElement > &
10
+ CommonStyledProps ;
9
11
10
- const StyledContainer = styled . span < Required < Pick < HourglassProps , 'size' > > > `
12
+ const StyledContainer = styled . div < Required < Pick < HourglassProps , 'size' > > > `
11
13
display: inline-block;
12
14
height: ${ ( { size } ) => getSize ( size ) } ;
13
15
width: ${ ( { size } ) => getSize ( size ) } ;
You can’t perform that action at this time.
0 commit comments