Skip to content

Replace makeId with htmlIdGenerator #3112

Closed
@thompsongl

Description

@thompsongl

EUI has two utility methods for creating unique identifiers for associating inputs and labels.

makeId:

  • Zero-dependency
  • No affixing/customization
  • Exported from and used exclusively in ./form/
  • No documentation

htmlIdGenerator

  • Uses uuid v1
  • Allows for prefixing and suffixing
  • Exported as part of the public API
  • Documentation in the works

We should change all usage to htmlIdGenerator and deprecate makeId

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions