Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook & shadcn setup #65

Merged
merged 5 commits into from
Mar 27, 2024
Merged

Conversation

emestabillo
Copy link
Contributor

@emestabillo emestabillo commented Jan 23, 2024

Description

  • Basic install of Storybook
  • Shadcn integration
  • Added custom button component and corresponding stories

Closes #53 , Closes #48

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@emestabillo emestabillo changed the title Feature/53 storybook shadcn setup Storybook & shadcn setup Jan 24, 2024
Copy link
Collaborator

@shashilo shashilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emestabillo Please review my comments.

label,
icon: IconComponent,
className,
...props
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this wildcard prop. Let's be explicit with what props we are allowing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wildcard prop removed

import { LucideProps } from "lucide-react";

interface ButtonProps {
variant?:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all optional, which is not ideal. Please require the props that we need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would we handle the different variants?
a. button with text
b. button with icon
c. button with icon and text

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only be building components from the design.

}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, asChild = false, ...props }, ref) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, let's be explicit with our props.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component is from Shadcn. Make adjustments?

Copy link

vercel bot commented Mar 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gridiron-survivor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2024 5:34pm

@ryandotfurrer
Copy link
Member

Close to clean up in future.

@shashilo shashilo deleted the feature/53-storybook-shadcn-setup branch March 19, 2024 14:35
This was referenced Mar 19, 2024
@shashilo shashilo restored the feature/53-storybook-shadcn-setup branch March 25, 2024 19:06
@shashilo shashilo reopened this Mar 25, 2024
@shashilo shashilo merged commit 4951f10 into develop Mar 27, 2024
6 checks passed
@shashilo shashilo deleted the feature/53-storybook-shadcn-setup branch March 27, 2024 01:33
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.

3 participants