Add an option to customise component that is inserted when using Overdrive
gryzzly opened this issue · 1 comments
gryzzly commented
Similar to <ReactCSSTransitionGroup>
there could be a component
prop and className
prop to customise what will wrap the children provided to Overdrive. Otherwise it is quite easy to break layout with an unexpected <div>
.
berzniz commented
All properties are available on the <Overdrive/>
component, for example:
<Overdrive className="some-class" style={{display: 'inline-block'}}>
...
</Overdrive>
This should allow customizing the added <div/>
in any way needed. Does this solution meet the needs you decribed? or choosing the tag important (span
/ li
/ etc... instead of div
)?