Skip to content

Commit

Permalink
fix(global): 🐛 fix validProps of oreCheckbox
Browse files Browse the repository at this point in the history
fix validProps of oreCheckbox

Ref: #323
  • Loading branch information
PritamIT2023 committed Aug 24, 2024
1 parent 936bc96 commit c4ecaad
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions package/components/inputs/CoreCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CoreCheckbox.validProps = [
{
description: "The icon to display when the component is checked.",
name : "checkedIcon",
types : [{ default: <CoreIcon>check_box</CoreIcon>, type: "object" }],
types : [{ default: <CoreIcon>check_box</CoreIcon>, type: "node" }],
},

{
Expand Down Expand Up @@ -66,7 +66,7 @@ CoreCheckbox.validProps = [
{
description: "The icon to display when the component is unchecked.",
name : "icon",
types : [{ default: <CoreIcon>check_box_outline_blank</CoreIcon>, type: "object" }],
types : [{ default: <CoreIcon>check_box_outline_blank</CoreIcon>, type: "node" }],
},
{
description: "The id of the input element.",
Expand All @@ -93,7 +93,7 @@ CoreCheckbox.validProps = [
{
description: "The icon to display when the component is indeterminate.",
name : "indeterminateIcon",
types : [{ default: <CoreIcon>indeterminate_check_box</CoreIcon>, type: "object" }],
types : [{ default: <CoreIcon>indeterminate_check_box</CoreIcon>, type: "node" }],
},
{
description: "Attributes applied to the input element.",
Expand All @@ -120,7 +120,13 @@ CoreCheckbox.validProps = [
description:
"The size of the component. small is equivalent to the dense checkbox styling.",
name : "size",
types: [{ default: "medium'", type: "medium'| 'small'| string" }],
types: [
{
default : "medium",
type : "string",
validValues: ["medium", "small"],
},
]
},
{
description: "The value of the component. The DOM API casts this to a string. The browser uses \"on\" as the default value.",
Expand Down

0 comments on commit c4ecaad

Please sign in to comment.