Add documentation to fix the issue when you have array props, and you receive a string instead of an object in your SDC.

Created on 15 November 2024, 6 days ago

Add documentation to fix the issue when you have array props, and you receive a string instead of an object in your SDC.

If you are passing an array of objects to a story and it is being converted into a string comma separated:

{% stories My_Stories with {
  title: "Sample Stories",
  argTypes: {}
} %}
    {% story Story1 with {
        name: "Story 1",
        args: {
            items: [
                "Hello",
                "World!"
            ],
        },
    } %}
    {% include('resouce:my-component', { items }) %}
    {% endstory %}
{% endstories %}

In your components, you will receive the "items" prop with the string value "Hello,World!" instead of the array with two entries.

📌 Task
Status

Active

Version

1.0

Component

Documentation

Created by

🇨🇴Colombia diarcastro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024