The ITypographySlot interface represents a typography slot.

interface ITypographySlot {
    className?: string;
    groupRef?: (element?: null | HTMLDivElement) => void;
    placeholder?: string;
    style?: any;
    typoVariant?:
        | "h1"
        | "h2"
        | "h3"
        | "h4"
        | "h5"
        | "h6"
        | "subtitle1"
        | "subtitle2"
        | "body1"
        | "body2"
        | "caption";
    value: any;
}

Hierarchy (View Summary)

Properties

className?: string

Gets the value of the className property from the provided object.

This function uses the PickProp type from the IField interface to pick the 'className' property from the provided object based on the Data and Payload generic types.

The type of the data in the IField interface.

The type of the payload in the IField interface.

The object from which to get the className property.

The value of the className property, or undefined if it doesn't exist.

groupRef?: (element?: null | HTMLDivElement) => void

Represents a reference to a group in a field. This reference is optional.

placeholder?: string

Retrieves the placeholder property from the given IField object. The placeholder property is a key of type PickProp.

The input field object.

  • The placeholder property of the field object.
style?: any

Retrieves the 'style' property of the given variable, using the 'PickProp' utility type.

The type of the field's data.

The type of the field's payload.

The type of the variable to pick property from.

typoVariant?:
    | "h1"
    | "h2"
    | "h3"
    | "h4"
    | "h5"
    | "h6"
    | "subtitle1"
    | "subtitle2"
    | "body1"
    | "body2"
    | "caption"

Represents the typoVariant property of an object.

value: any