Skip to content

Commit 57cfe9e

Browse files
committed
fix(CTabs): add missing disabled prop
1 parent 71e13d8 commit 57cfe9e

File tree

1 file changed

+5
-0
lines changed
  • packages/coreui-react/src/components/tabs

1 file changed

+5
-0
lines changed

packages/coreui-react/src/components/tabs/CTab.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export interface CTabProps extends HTMLAttributes<HTMLButtonElement> {
99
* A string of all className you want applied to the base component.
1010
*/
1111
className?: string
12+
/**
13+
* Toggle the disabled state for the component.
14+
*/
15+
disabled?: boolean
1216
/**
1317
* Item key.
1418
*/
@@ -50,6 +54,7 @@ export const CTab = forwardRef<HTMLButtonElement, CTabProps>(
5054
CTab.propTypes = {
5155
children: PropTypes.node,
5256
className: PropTypes.string,
57+
disabled: PropTypes.bool,
5358
itemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
5459
}
5560

0 commit comments

Comments
 (0)