mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
21 lines
652 B
TypeScript
21 lines
652 B
TypeScript
// Style as inline component
|
|
import { prepareComponentToken, prepareToken } from '.';
|
|
import { genCompactItemStyle } from '../../style/compact-item';
|
|
import { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';
|
|
import { genSubStyleComponent } from '../../theme/internal';
|
|
|
|
// ============================== Export ==============================
|
|
export default genSubStyleComponent(
|
|
['Button', 'compact'],
|
|
(token) => {
|
|
const buttonToken = prepareToken(token);
|
|
|
|
return [
|
|
// Space Compact
|
|
genCompactItemStyle(buttonToken),
|
|
genCompactItemVerticalStyle(buttonToken),
|
|
];
|
|
},
|
|
prepareComponentToken,
|
|
);
|