Skip to main content

Interface: SelectionActionAnchorProps

Defined in: widgets/selectionAction.tsx:397

Props for SelectionActionAnchor component.

See

SelectionActionAnchor

Extends

Properties

PropertyTypeDescriptionInherited from

anchorProps?

HTMLProps<HTMLAnchorElement>

Props for the inner <a> element.

Default:

{
role: 'button',
href: '{target.iri}',
target: '_blank',
rel: 'noreferrer',
}

className?

string

Additional CSS class for the component.

SelectionActionStyleProps.className

dock

DockDirection

Dock side direction for the action around the selected elements.

SelectionActionStyleProps.dock

dockColumn?

number

Horizontal place shift for the action button (e.g. -1 for one place to the left, 1 for one place to the right).

SelectionActionStyleProps.dockColumn

dockRow?

number

Vertical place shift for the action button (e.g. -1 for one place above, 1 for one place below).

SelectionActionStyleProps.dockRow

hotkey?

null | `Alt+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${Capitalize<string>}` | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}`

Keyboard hotkey for the action when it's mounted.

Passing null disables a default hotkey if there is one.

SelectionActionStyleProps.hotkey

onSelect?

(target, e) => void

Handler to call when the action is selected.

title?

string

Title for the action button.

SelectionActionStyleProps.title