Skip to content

Consider supporting "ref" prop #641

@darthtrevino

Description

@darthtrevino

Consider ref props on marks for getting access to low-level renderables:

const ref = useRef<SVGRectElement>(null)

<Rect ref={ref} />

On bound marks, I'm not sure what this would look like - maybe an array of items?

const ref = useRef<SVGRectElement[]>([])
<Rect ref={ref} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions