# Basic configuration
config <- focus_element()
# Custom configuration
config <- focus_element(
key = "my-focus-behavior",
animation = list(duration = 1000, easing = "ease-out"),
enable = JS("(event) => event.targetType === 'node'")
)
Run the code above in your browser using DataLab