Closed whitphx closed 4 years ago
Hello, I want the *Props interfaces to be exported in order to extend the sancho's components like this:
*Props
/** @jsx jsx */ import { jsx } from '@emotion/core'; import { Layer, LayerProps } from 'sancho'; interface DecoratedLayerProps extends LayerProps { backgroundColor: string; } export const DecoratedLayer: React.FC<DecoratedLayerProps> = props => { const { backgroundColor, ...restProps } = props; return ( <Layer css={{ backgroundColor, }} {...restProps} /> ); };
Roger that 👍
Hello, I want the
*Props
interfaces to be exported in order to extend the sancho's components like this: