Skip to content

[pull] main from coreui:main #10

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

Merged
merged 11 commits into from
Sep 21, 2024
Prev Previous commit
Next Next commit
fix(CTabs): add missing disabled prop
  • Loading branch information
mrholek committed Sep 18, 2024
commit 57cfe9e0315d6d56fc4902e2368fc0cf1041075e
5 changes: 5 additions & 0 deletions packages/coreui-react/src/components/tabs/CTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export interface CTabProps extends HTMLAttributes<HTMLButtonElement> {
* A string of all className you want applied to the base component.
*/
className?: string
/**
* Toggle the disabled state for the component.
*/
disabled?: boolean
/**
* Item key.
*/
Expand Down Expand Up @@ -50,6 +54,7 @@ export const CTab = forwardRef<HTMLButtonElement, CTabProps>(
CTab.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
disabled: PropTypes.bool,
itemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
}

Expand Down