输入类控件支持面性、下划线等变体
#43464
Replies: 4 comments 5 replies
-
面性的就没有 focus 样式了么 |
Beta Was this translation helpful? Give feedback.
4 replies
-
type InputProps = {
type?: 'outlined' | 'filled' | 'underlined' | 'borderless',
/** @deprecated */
bordered?: boolean
} 要把 borderless 收进去的话 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Would be fine having them all... 👀 ANTD need to grow to be the 1st used library 😁 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Conclusion: use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景
业务中会存在需要面性输入框、下划线选择器等诉求,目前的 antd 组件只支持线性和无边框两种样式变体。本 RFC 期望为输入类控件添加面性、下划线这两个变体,以适应不同场景下的输入诉求。
相关参考
maintine中面性叫 filled
MUI 没有面型
acro 和 semi ,默认都是面型,不支持切换
nextjs 的支持的很丰富,默认、面性、下划线都有
建议 api
type variant = "default" | "filled" | "underline" | "borderless"
Beta Was this translation helpful? Give feedback.
All reactions