Type Alias: PartFn
type PartFn = (part, extra?) => PartAttrs;
Defined in: parts.tsx:85
The attribute bundle for one part.
data-component goes on EVERY part, not only the root. docs/12 §5.1 lists it
beside data-scope and data-part without qualification, and a host
selector like [data-component="TextField"][data-part="input"] — the shape
§5.1 invites — matched nothing when only roots carried it.
Parameters
| Parameter | Type |
|---|---|
part | string |
extra? | { className?: string; state?: PartState; } |
extra.className? | string |
extra.state? | PartState |
Returns
PartAttrs