Skip to content

Can this be applied to a textarea? #174

Open
@keithpickering

Description

@keithpickering

Is your feature request related to a problem? Please describe.
Seems like a common use case but I can't find anything about it. We can apply custom scrollbars to any element, but not a textarea

Describe the solution you'd like
Using the renderer prop makes sense, but I'm not sure if this works since it would be adding a bunch of extra html inside the textarea (likely not valid)

<Scrollbar
  elementRef={this.input}
  renderer={props => {
    const { elementRef, restProps } = props;
    return <textarea {...restProps} ref={elementRef} />
  }}
/>

Describe alternatives you've considered
Contenteditable seems like a hack that could negatively affect accessibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions