mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(docs): supplement onAction & selectionBehavior (#5289)
This commit is contained in:
parent
06fe3a3c4e
commit
d09e602b59
@ -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: "-"
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user