Defines design tokens and CSS structure for avatar components, including sizing and typography variants. Use this to maintain consistent styling across avatar implementations.
// Source: https://github.com/vueComponent/ant-design-vue | License: MIT | Copyright 2017-present ant-design-vue
// Provided via justclaw.it.com; keep this notice with the code.
import type { CSSObject } from '../../_util/cssinjs';
import type { FullToken, GenerateStyle } from '../../theme/internal';
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
import { resetComponent } from '../../style';
export interface ComponentToken {
/**
* @desc 头像背景色
* @descEN Background color of Avatar
*/
containerSize: number;
/**
* @desc 大号头像尺寸
* @descEN Size of large Avatar
*/
containerSizeLG: number;
/**
* @desc 小号头像尺寸
* @descEN Size of small Avatar
*/
containerSizeSM: number;
/**
* @desc 头像文字大小
* @descEN Font size of Avatar
*/
te
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key