Skip to content

Conversation

@hasparus
Copy link
Collaborator

@hasparus hasparus commented Dec 4, 2025

image

What's changed?

  • I pulled the Tabs component from Nextra,
  • changed its styles so it uses proper colors from Tailwind config,
  • wrote stories for it, some of them testing with play() function, some for manual testing
    • take note that Next.js Navigation mock from @storybook/nextjs is not in sync with the window URL. it's easy to forget about it and think the component is misbehaving, but in all 3 cases I thought that it was just the mock and Storybook's expected behavior
  • added a new, commonly requested :) feature where
  • all tabs save to localStorage now by default, even if you don't pass storageKey — I can remove this ?? id easily, so it's up for discussion, but I feel like it's a good default, because the user of this component is more focused on actually writing the docs than remembering all the props of the Tabs

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2025

🦋 Changeset detected

Latest commit: 496b47b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@theguild/components Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@theguild/components 9.12.0-alpha-20251205171114-496b47b3a0386560d83c9699b5ea856ed3a7d951 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

📚 Storybook Deployment

The latest changes are available as preview in: https://pr-2096.the-guild-docs-storybook.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants