mustUseProp() — vue Function Reference
Architecture documentation for the mustUseProp() function in attrs.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 66159ab1_788f_0471_4c58_d69f56fcbefd["mustUseProp()"] 4250c294_bc81_e422_3fed_02381dc61714["attrs.ts"] 66159ab1_788f_0471_4c58_d69f56fcbefd -->|defined in| 4250c294_bc81_e422_3fed_02381dc61714 style 66159ab1_788f_0471_4c58_d69f56fcbefd fill:#6366f1,stroke:#818cf8,color:#fff
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
Defined In
Source
Frequently Asked Questions
What does mustUseProp() do?
mustUseProp() is a function in the vue codebase, defined in src/platforms/web/util/attrs.ts.
Where is mustUseProp() defined?
mustUseProp() is defined in src/platforms/web/util/attrs.ts at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free