couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 126 forks source link

Allow renderAs to receive another React-Bulma-Components Component as a value #315

Closed couds closed 3 years ago

couds commented 3 years ago

Currently the renderAs prop do not allow to compose using Components from the library itself

To Reproduce

In a TS project add

import React from 'react';
import { Content, Notification } from 'react-bulma-components';

function App() {
  return <Content renderAs={Notification} color="success">Any data</Content>;
}

See errors

image

image

Expected behavior

Versions

kennethnym commented 3 years ago

will fix asap.

couds commented 3 years ago

@kennethnym Thanks!

kennethnym commented 3 years ago

seems like this is fixed. closing