element-plus/packages/tokens/button.ts
jeremywu 19bc41f965
feat(hooks): extracting size injection for form items (#3383)
* feat(hooks): extracting size injection for form items

- Extract common code for form items
- Apply extracted code for el-button

* - Address import order

* Update packages/hooks/use-form-item/index.ts

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>

* - Fix type annotation for fallbacks

* - Use MaybeRef to mark type of local fallbacks

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2021-09-13 23:14:48 +08:00

10 lines
248 B
TypeScript

import type { InjectionKey } from 'vue'
import type { ComponentSize } from '@element-plus/utils/types'
export interface ElButtonGroupContext {
size?: ComponentSize
}
export const elButtonGroupKey: InjectionKey<ElButtonGroupContext> = Symbol()