blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

Refactor simple class components into functions

Open adidahiya opened this issue 2 years ago • 0 comments

Environment

  • Package version(s): @blueprintjs/core v5.x

Feature request

Request to refactor simple class components into functions, which would allow:

  • Forwarding refs via the ref prop
  • Spreading DOM attributes like data-* - https://github.com/palantir/blueprint/issues/3763
  • Rendering as server components - https://github.com/palantir/blueprint/issues/6263#issuecomment-1746745749

As of @blueprintjs/core v5.1.x, these include:

  • [ ] Breadcrumbs
  • [x] Callout
  • [ ] Collapse
  • [ ] Dialog
  • [x] DialogBody
  • [x] DialogFooter
  • [x] Divider
  • [ ] Drawer
  • [x] FileInput
  • [x] FormGroup
  • [ ] InputGroup
  • [ ] KeyComboTag
  • [x] Menu
  • [x] MenuDivider
  • [x] Navbar
  • [x] NavbarDivider
  • [x] NavbarGroup
  • [ ] NonIdealState
  • [x] ProgressBar
  • [x] RadioGroup
  • [x] Spinner
  • [ ] TextArea

This would be a ⚠️ breaking change ⚠️

adidahiya avatar Jul 19 '23 16:07 adidahiya