surface-ui/surface_catalogue

Add "Slots" tab to the playground

Closed this issue · 4 comments

Allow setting text values to components' slots, similar to the way to we do with props.

  1. Add a "Slots" tab right after the existing "Properties" tab.
  2. Show a textinput (or textarea) for each available slot
  3. Allow the user to define the content of the slot as the given text.

I've been meaning to get involved with this project and this seems like a good one to start.

Just have one question though. @msaraiva do you mean this to be text only or should it allow for users to input markup as well?

Hi @dmnelson!

I've been meaning to get involved with this project and this seems like a good one to start.

That's great! Contributions are always welcome. This feature requires a change in Surface first, so I'll work on that and ping you when it's available.

do you mean this to be text only or should it allow for users to input markup as well?

Text only, for now.

Hey @dmnelson!

I ended up implementing this feature on #42 so I could test the changes I made in Surface.

In case there are other improvements you want to make on even work on a different feature, please let me know.

Thanks again!

@msaraiva It looks great! In fact I just enjoy the project and am looking into ways to contribute, so if you have any suggestions that would be great too.