@yesstudio/nuxt-composables
    Preparing search index...

    Interface HtmlAttr

    Construct a type with the properties of T except for those in type K.

    interface HtmlAttr {
        class?: MaybeArray<
            | ResolvableValue<Stringable>
            | Record<string, ResolvableValue<Stringable>>,
        >;
        dir?: "auto" | "ltr" | "rtl";
        id?: string;
        key?: string;
        lang?: string;
        prefix?: string & Record<never, never> | "og: https://ogp.me/ns#";
        style?: MaybeArray<
            ResolvableValue<Stringable>
            | ResolvableProperties<CSSProperties>,
        >;
        tagDuplicateStrategy?: "replace" | "merge";
        tagPriority?:
            | number
            | "high"
            | "low"
            | "critical"
            | `before:${string}`
            | `after:${string}`;
        translate?: ""
        | "yes"
        | "no";
        xmlns?: string;
        [key: `data-${string}`]: Stringable;
        [key: `xmlns:${string}`]: string;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: `data-${string}`]: Stringable
    • [key: `xmlns:${string}`]: string
    Index

    Properties

    class?: MaybeArray<
        | ResolvableValue<Stringable>
        | Record<string, ResolvableValue<Stringable>>,
    >

    The class global attribute is a space-separated list of the case-sensitive classes of the element.

    dir?: "auto" | "ltr" | "rtl"

    An enumerated attribute indicating the directionality of the element's text.

    id?: string

    The id global attribute defines a unique identifier (ID) which must be unique in the whole document.

    key?: string

    By default, tags which share the same unique key name, property are de-duped. To allow duplicates to be made you can provide a unique key for each entry.

    lang?: string

    Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user.

    prefix?: string & Record<never, never> | "og: https://ogp.me/ns#"

    Open-graph protocol prefix.

    The class global attribute is a space-separated list of the case-sensitive classes of the element.

    tagDuplicateStrategy?: "replace" | "merge"

    The strategy to use when a duplicate tag is encountered.

    • replace - Replace the existing tag with the new tag
    • merge - Merge the existing tag with the new tag
    'replace' (some tags will default to 'merge', such as htmlAttr)
    
    tagPriority?:
        | number
        | "high"
        | "low"
        | "critical"
        | `before:${string}`
        | `after:${string}`

    The priority for rendering the tag, without this all tags are rendered as they are registered (besides some special tags).

    The following special tags have default priorities: -2 <meta charset ...> -1 <base> 0 <meta http-equiv="content-security-policy" ...>

    All other tags have a default priority of 10: <meta>, <script>, <link>, <style>, etc

    translate?: "" | "yes" | "no"

    An enumerated attribute that is used to specify whether an element's attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.

    xmlns?: string

    XML namespace