GetStream / react-activity-feed

Stream React Activity Feed Components
https://getstream.io/react-activity-feed/
BSD 3-Clause "New" or "Revised" License
137 stars 83 forks source link

Add `className` and `style` properties to wrappers of UI components #302

Closed arnautov-anton closed 3 years ago

arnautov-anton commented 3 years ago

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[bot] commented 3 years ago

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