ElemeFE / ElemeFE/element-react

Input size does not match the Chalk theme (or Vue library)

Open
#899 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Description

I noticed the Input component only takes `large|small|mini` for the size prop, while the Vue version takes `medium` instead of `large`. `medium` is also used by the Chalk theme, so setting `size="medium"` works in the browser but throws an error in the console.

Is there any chance the React version could follow the Vue Input component in this regard, so that the same theme can be used for both? We have to do some forms in React even though everything else is Vue, so it would be very helpful if the Element themes worked for both.

### Reproduce Steps

1. `

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.