# AttrPartNode

Represents a dynamic attribute (e.g. `src="${url}"`).

## Signatures

```ts
export declare class AttrPartNode {
    readonly _tag: "attr";
    readonly name: string;
    readonly index: number;
    constructor(name: string, index: number);
}
```

## Why

The retained input index drives direct local attribute updates and escaped SSR.

## Ownership and lifetime

The part owns no Attr or producer; the render Scope owns both updater and source.

## Constructor

Creates dynamic attribute syntax.

## Property: _tag

Dynamic-attribute discriminant.

## Property: _tag: Why

Selects direct Attr updates and escaped SSR.

## Property: _tag: Ownership and lifetime

Immutable AST metadata.

## Property: index

Interpolation index driving this attribute.

## Property: index: Why

Locates the producer for one retained Attr target.

## Property: index: Ownership and lifetime

Immutable scalar metadata; the render Scope owns the producer.

## Property: name

Native attribute name.

## Property: name: Why

Identifies the target whose sparse segments are joined.

## Property: name: Ownership and lifetime

Retained string metadata.

## Examples

```ts
import { AttrPartNode } from "@typed/template/Template"

const part = new AttrPartNode("src", 0)
```
