mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 22:41:17 +08:00
452bdcdb53
* refactor: select support css var * chore: code clean * chore: add useCSSVarCls * chore: update style * chore: perf code
10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
import { useToken } from '../../theme/internal';
|
|
|
|
const useCSSVarCls = (prefixCls: string) => {
|
|
const [, , , , cssVar] = useToken();
|
|
|
|
return cssVar ? `${prefixCls}-css-var` : '';
|
|
};
|
|
|
|
export default useCSSVarCls;
|