scup / atellier

The smartest way to share interactive components with your team.
http://scup.github.io/atellier/
MIT License
995 stars 33 forks source link

Feature: add optional `componentProps` to the component descriptor to pass initial props values from the outside. #41

Open sompylasar opened 8 years ago

sompylasar commented 8 years ago

Like this:

const components = [
  {
    component: SomeComponent,
    componentName: "SomeComponent",
    componentProps:  {
      foo: "bar",
    },
  }
];
mpim commented 8 years ago

My team has a need for this feature also - we have samples with fake data and relying defaultProps is risky because that shouldn't get rendered in the actual live site.

agutoli commented 8 years ago

It's a good idea