Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9704251

Browse files
Merge pull request #459 from abelnnieva/fix-cbutton-prop-validator
fix: add an unstyled variant to the c-button validators
2 parents be70c2a + 46a353a commit 9704251

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dull-rats-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@chakra-ui/vue": patch
3+
---
4+
5+
fix: add an unstyled variant to the c-button validators

packages/chakra-ui-core/src/CButton/utils/button.props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const buttonProps = {
1212
type: String,
1313
default: 'solid',
1414
validator: value =>
15-
value.match(/^(solid|outline|ghost|flat|link)$/)
15+
value.match(/^(solid|outline|ghost|flat|link|unstyled)$/)
1616
},
1717
variantColor: {
1818
type: [String, Array],

0 commit comments

Comments
 (0)