chore(docs): supplement onAction & selectionBehavior (#5289)

This commit is contained in:
WK 2025-06-02 00:54:48 +08:00 committed by GitHub
parent 06fe3a3c4e
commit d09e602b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,6 +375,12 @@ You can customize the `Listbox` items style by using the `itemClasses` prop and
description: "Whether to disable the animation of the listbox items.",
default: "false"
},
{
attribute: "selectionBehavior",
type: "'toggle' | 'replace'",
description: "How multiple selection should behave in the collection.",
default: "toggle"
},
{
attribute: "classNames",
type: "Partial<Record<\"base\" | \"list\" | \"emptyContent\", string>>",
@ -397,7 +403,7 @@ You can customize the `Listbox` items style by using the `itemClasses` prop and
{
attribute: "onAction",
type: "(key: React.Key) => void",
description: "Handler that is called when an item is selected.",
description: "Handler that is called when a user performs an action on an item. The exact user event depends on the collection's selectionBehavior prop and the interaction modality.",
default: "-"
},
{