Skip to content

class and classNames are possibly redundant #352

Description

@mehulkar

To append classes to a component's HTML, you can do a few things:

  1. Add classNames: [] property to the JS
  2. Pass in classNames = 'a b' when invoking the component
  3. Pass in class = 'a b' when invoking the component

Considering that setting class: [] in JS is not valid, I think 2 and 3 should be consolidated. My personal preference would be to deprecate/remove the third option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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