mustUseProp() — vue Function Reference
Architecture documentation for the mustUseProp() function in attrs.ts from the vue codebase.
Entity Profile
Relationship Graph
Source Code
src/platforms/web/util/attrs.ts lines 9–20
export const mustUseProp = (
tag: string,
type?: string | null,
attr?: string
): boolean => {
return (
(attr === 'value' && acceptValue(tag) && type !== 'button') ||
(attr === 'selected' && tag === 'option') ||
(attr === 'checked' && tag === 'input') ||
(attr === 'muted' && tag === 'video')
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free