File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
1515} as ComponentMeta < typeof Hourglass > ;
1616
1717export function Default ( ) {
18- return < Hourglass size = { 32 } /> ;
18+ return < Hourglass size = { 32 } style = { { margin : 20 } } /> ;
1919}
2020
2121Default . story = {
Original file line number Diff line number Diff line change 11import React , { forwardRef } from 'react' ;
22import styled from 'styled-components' ;
33import { getSize } from '../common/utils' ;
4+ import { CommonStyledProps } from '../types' ;
45import base64hourglass from './base64hourglass' ;
56
67type HourglassProps = {
78 size ?: string | number ;
8- } ;
9+ } & React . HTMLAttributes < HTMLDivElement > &
10+ CommonStyledProps ;
911
10- const StyledContainer = styled . span < Required < Pick < HourglassProps , 'size' > > > `
12+ const StyledContainer = styled . div < Required < Pick < HourglassProps , 'size' > > > `
1113 display: inline-block;
1214 height: ${ ( { size } ) => getSize ( size ) } ;
1315 width: ${ ( { size } ) => getSize ( size ) } ;
You can’t perform that action at this time.
0 commit comments