feat(combo-box): add hideLabel prop (#2153)

This commit is contained in:
Nick Wing 2025-04-18 12:27:14 -05:00 committed by GitHub
commit 436dea47e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 50 additions and 1 deletions

View file

@ -1851,6 +1851,18 @@
"constant": false,
"reactive": false
},
{
"name": "hideLabel",
"kind": "let",
"description": "Set to `true` to visually hide the label text",
"type": "boolean",
"value": "false",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
"constant": false,
"reactive": false
},
{
"name": "placeholder",
"kind": "let",

View file

@ -24,6 +24,15 @@ Override the default slot to customize the display of each item. Access the item
<FileSource src="/framed/ComboBox/ComboBoxSlot" />
## Hidden label
<ComboBox hideLabel titleText="Hidden Label" placeholder="Select contact method"
items={[
{id: "0", text: "Slack"},
{id: "1", text: "Email"},
{id: "2", text: "Fax"}
]} />
## Initial selected id
<ComboBox titleText="Contact" placeholder="Select contact method"