How to use the @rmwc/card.CardAction function in @rmwc/card

To help you get started, we’ve selected a few @rmwc/card examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fluidtrends / chunky / web / lib / components / Collection.js View on Github external
value: function renderCardButtons(item, index) {
      if (this.props.renderCardButtons) {
        return this.props.renderCardButtons(item, index);
      }

      return _react2.default.createElement(
        _card.CardActionButtons,
        null,
        _react2.default.createElement(
          _card.CardAction,
          { onClick: this.triggerEvent(item.name || index, Object.assign({}, item.action, { primary: true })) },
          ' ',
          item.actionTitle || 'Learn More',
          ' '
        ),
        this.renderSecondaryCardButton(item, index)
      );
    }
  }, {

@rmwc/card

RMWC Card component

MIT
Latest version published 22 days ago

Package Health Score

84 / 100
Full package analysis