Skip to content

Refactor - Conform React button and icon button's prop interface#83

Open
echennau wants to merge 1 commit into2.0.1---devfrom
refactor/react-button-interface
Open

Refactor - Conform React button and icon button's prop interface#83
echennau wants to merge 1 commit into2.0.1---devfrom
refactor/react-button-interface

Conversation

@echennau
Copy link
Copy Markdown
Collaborator

@echennau echennau commented Apr 8, 2026

When working on Terranova, James noted how it was clunky to use certain components (such as the button) since they lacked className and couldn't pass in Tailwind utility classes.

PktsButton and PktsIconButton now have a prop interface that conforms with the other components, extending from React's ComponentPropsWithoutRef<"button">, which includes all HTML base attributes. Still provides the ability to discriminate between being a anchor tag or a button tag and having their respective native HTML props.

Also fixed icon button square styling issue.

Now conforms with other components. Also fixed icon button square styling issue.
@echennau echennau changed the title Refactor React button and icon button's prop interface Refactor - Conform React button and icon button's prop interface Apr 9, 2026
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.

1 participant