@motion-script/core / TextStyle
Interface: TextStyle
Defined in: runtime/builtin-context.ts:25
A text node's style vocabulary — every field a <DefaultTextStyle> can
supply, a Text/RichText variant preset can set, and theme.typography
can default. Each field is the loose author-facing type (matching the
corresponding Text @property) and is optional: only the keys a given
source explicitly sets are present, so a descendant inherits exactly those
and keeps its own defaults for the rest.
Properties
fill?
optionalfill?:Fill
Defined in: runtime/builtin-context.ts:33
fontFamily?
optionalfontFamily?:string
Defined in: runtime/builtin-context.ts:26
fontSize?
optionalfontSize?:number|"autofit"
Defined in: runtime/builtin-context.ts:27
fontStyle?
optionalfontStyle?:FontStyle
Defined in: runtime/builtin-context.ts:29
fontWeight?
optionalfontWeight?:number
Defined in: runtime/builtin-context.ts:28
letterSpacing?
optionalletterSpacing?:number
Defined in: runtime/builtin-context.ts:30
lineHeight?
optionallineHeight?:number
Defined in: runtime/builtin-context.ts:31
shadow?
optionalshadow?:Shadow
Defined in: runtime/builtin-context.ts:35
stroke?
optionalstroke?:Stroke
Defined in: runtime/builtin-context.ts:34
textAlign?
optionaltextAlign?:TextAlign
Defined in: runtime/builtin-context.ts:32