Title here
Summary here
import $TextPrimitive from "@TextPrimitive";
import $Theme from "@Theme";
export default $TextPrimitive.declare("LabelAtomPrimitive", {
statics: /** @lends LabelAtomPrimitive */ {
MAX_LINES: 1
},
properties: /** @lends LabelAtomPrimitive.prototype */ {
size: $Theme.SIZE_H5_7,
family: $Theme.FONT_REGULAR,
color: $Theme.COLOR_LIGHT,
maxLines: ({statics}) => statics.MAX_LINES,
ellipsis: true,
align: "left"
}
});
There is a short list of existing primitives :
Caution
Regarding image primitive, it is highly recommended to use ImagePrimitive that loads an image in the correct size. Contain and Cover logic has cost that will depends on renderers. Prefer to use ImagePrimitive and only if your case is specific, use CoverImagePrimitive or ContainImagePrimitive