Skip to content

Conversation

@arnautov-anton
Copy link
Contributor

Allows users to style default components with libraries like Styled Components 💅 or Emotion.

Example with styled-components:

import styled from "styled-components";
import { Activity } from "react-activity-feed";

const CustomActivity = styled(Activity)`
  background-color: ${({ activity: { verb } }) => verb === "repost" ? "hotpink" : "white"};
  color: #ddd;
`

@github-actions
Copy link

github-actions bot commented Sep 23, 2021

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.js 217.54 KB (+0.31% 🔺) 4.4 s (+0.31% 🔺) 442 ms (-32.39% 🔽) 4.8 s
dist/index.css 8.17 KB (0%) 164 ms (0%) 0 ms (+100% 🔺) 164 ms

@arnautov-anton arnautov-anton merged commit f3ac8c4 into main Sep 28, 2021
@arnautov-anton arnautov-anton deleted the add-wrapper-props branch September 28, 2021 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants