element-plus/packages/tokens/button.ts
Sanxiaozhizi 6b017045ae
feat(components): button-group add size (#3098)
* feat(components): button-group add size

* feat(components): add size validator

* docs: complete docs

* fix(components): fix typo

* refactor(components): move and rename tokens

* refactor(components): change size type

* fix: button-group reactive size
2021-08-29 12:33:35 +08:00

10 lines
248 B
TypeScript

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