Skip to content

Commit

Permalink
update CaretBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily committed Aug 6, 2018
1 parent 0545654 commit 5c4f885
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/CaretBox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Box from './Box'
import Block from './Box'
import Caret from './Caret'
import {withSystemProps} from './system-props'

Expand All @@ -14,21 +14,25 @@ function CaretBox(props) {
}

return (
<Box {...rest}>
<Block {...rest}}>
{children}
<Caret {...caretProps} />
</Box>
</Block>
)
}

CaretBox.propTypes = {
...Box.propTypes,
...Block.propTypes,
caret: Caret.propTypes.location
}

CaretBox.defaultProps = {
...Box.defaultProps,
...Block.defaultProps,
bg: 1,
border: 1,
borderColor: 'gray.2',
borderRadius: 1,
position: 'relative'
}

export default withSystemProps(CaretBox, ['color'])
export default CaretBox

0 comments on commit 5c4f885

Please sign in to comment.