Page MenuHomePhabricator

Add a startIcon option to buttons too
Closed, DeclinedPublic

Description

Offered in the input component already
Needed for: progress towards feature parity with OOUI (specifically for T259216: Migrate Special:GlobalWatchlist to Vue where the OOUI buttons have icons and the vue ones should too)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

FYI you can already do this without a startIcon prop, because a button (unlike an input) can contain arbitrary content:

<wvui-button>
    <wvui-icon :icon="someIcon" />
    Some text
</wvui-button>

We're discussing whether to keep doing it this way or use a different approach at T278509: Add Button component to Codex

Volker_E subscribed.

As @roan mentioned that was possible by adding icons, also in successor toolkit Codex.