Initial commit
This commit is contained in:
45
registry/components/NavbarStyleMinimal.json
Normal file
45
registry/components/NavbarStyleMinimal.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "NavbarStyleMinimal",
|
||||
"description": "A minimal navbar with left-aligned logo and optional right-aligned call-to-action button.",
|
||||
"constraints": {
|
||||
"brandRules": {
|
||||
"required": false,
|
||||
"minChars": 2,
|
||||
"maxChars": 20,
|
||||
"example": "Webild",
|
||||
"fallbackBehavior": "Shows brandName text"
|
||||
},
|
||||
"buttonRules": {
|
||||
"text": {
|
||||
"required": true,
|
||||
"minChars": 2,
|
||||
"maxChars": 24,
|
||||
"example": "Get Started"
|
||||
},
|
||||
"href": {
|
||||
"required": false,
|
||||
"format": "url | section-id",
|
||||
"example": "https://webild.io"
|
||||
},
|
||||
"onClick": {
|
||||
"required": false,
|
||||
"note": "Optional click handler"
|
||||
}
|
||||
}
|
||||
},
|
||||
"propsSchema": {
|
||||
"brandName?": "string (default: 'Webild')",
|
||||
"button": "{text: string, onClick?: () => void, href?: string}",
|
||||
"className?": "string (default: '')"
|
||||
},
|
||||
"usageExample": "",
|
||||
"do": [
|
||||
"Use for general use"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user