8000 feat: add icon to button component · Issue #49 · kinche/franz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
feat: add icon to button component #49
Open
@bukinoshita

Description

@bukinoshita

The button component should accept icons.

Something like this:

<If condition={Boolean(iconLeft)}>
  <i>{iconLeft}</i>
</If>

<span>{children}</span>

<If condition={Boolean(iconRight)}>
  <i>{iconRight}</i>
</If>

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

      0