Open pociej opened 1 month ago
Are you sure you are using the latest version (5.0.1)? The code you pasted from Stat.tsx
isn't using the current Stat structure which explains why your attempt isn't working.
@dev0T yep i have version 5.0.0. It uses storybook as usage documentation. Wehn you go to story book and check stats it is exactly like this :
<Stats {...args} className="shadow">
<Stats.Stat>
<Stats.Stat.Title>Total Page Views</Stats.Stat.Title>
<Stats.Stat.Value>89,400</Stats.Stat.Value>
<Stats.Stat.Desc>21% more than last month</Stats.Stat.Desc>
</Stats.Stat>
</Stats>
Which is same structure i used i believe.
@dev0T yep i have version 5.0.0. It uses storybook as usage documentation. Wehn you go to story book and check stats it is exactly like this :
<Stats {...args} className="shadow"> <Stats.Stat> <Stats.Stat.Title>Total Page Views</Stats.Stat.Title> <Stats.Stat.Value>89,400</Stats.Stat.Value> <Stats.Stat.Desc>21% more than last month</Stats.Stat.Desc> </Stats.Stat> </Stats>
Which is same structure i used i believe.
The storybook is updated for version 5.0.1 and not for 5.0.0. You need to upgrade your version.
Im using newest version. When i do
it throws :
because there is no
Stats.Stat.Title
indeed when i check the build it is typed like this