Skip to content

Use useId instead of requiring consumers to provide an id as a prop #2575

@johncowen

Description

@johncowen

Also see #2562 (review)

Ideally if an id is only required internally by a component for aria or other reasons, then a component should instead use Vue's useId to provide that id instead of requiring the consumer of the component to provide one.

This goes for any component that uses id similarly not just KCodeBlock (which the above comment/link refers to)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions