Closed sctgraham closed 2 years ago
Just to clarify : it works ! The <BorderedBox/>
component is indeed rendered as an <aside/>
in the browser.
But I can't figure out how to get correct Typescript typings.
@sctgraham please check Scaleway UI: https://github.com/scaleway/scaleway-ui/blob/8afa82eb50644b1dfbbec1b2abcd635a947b4a84/src/components/Box/index.tsx#L71
I'm having some trouble getting the following to play nicely with typescript. Specifically, the
as
prop onBorderedBox
throws a typescript error.Typescript gives this error :
Property 'as' does not exist on type 'IntrinsicAttributes & SystemProps<Theme> & { children?: ReactNode; }'
Thanks for any help on setting this up properly.