shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
21 stars 43 forks source link

Improve the Button library component. #120

Closed kuv2707 closed 2 weeks ago

kuv2707 commented 2 weeks ago

Description

The button component works fine, but exposes too many options as props, when in reality, we might never need more than a small set of configurable options.

We should make the button component a bit more user friendly by providing some more default options.

type ButtonProps = {
    text: string;
    textColor?: string;
    backgroundColor?: string;
    fontSize?: string;
    rounded?: string;
    buttonSize?: string;
    type?: 'submit' | 'reset' | 'button';
    borderColor?: string;
    hoverColor?: string;
    hoverScale?: boolean;
    px?: string;
    py?: string;
    className?: string;
    onClick?: () => void;
};

Notes

issue-assigner[bot] commented 2 weeks ago

Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.

sksmagr23 commented 2 weeks ago

@csoc-bot claim

issue-assigner[bot] commented 2 weeks ago

@sksmagr23 This issue has been successfully assigned to you! 🚀