Comments (4)
I don't think that works because react-loading-skeleton doesn't pass the className generated by styled-components you're using through to the Skeleton component.
from react-loading-skeleton.
In v2, you can set the border-radius
via the style
prop.
In v3, there is a borderRadius
prop on both Skeleton
and SkeletonTheme
.
from react-loading-skeleton.
I am also interested in this to make the Skeleton match different styles of components.
If you are using styled-components you can style the component that wraps the skeleton component. The Skeleton is a span.
span {
border-radius: 30px;
}
from react-loading-skeleton.
import Skeleton from 'react-loading-skeleton';
export const SkeletonLoading = styled(Skeleton)`
span {
border-radius: 15px !important;
}
`;
Tried to do this but seems not working
from react-loading-skeleton.
Related Issues (20)
- Fill wrapping container HOT 3
- Module not found
- Typescript: Not compatible with config "moduleResolution": "nodenext" HOT 7
- TypeError: Property description must be an object: count at defineProperties HOT 4
- Animation isn't working since 3.2 HOT 3
- Version 3.3.0 contains breaking changes compared to 3.2.0 HOT 1
- Not working with nextjs loading.tsx HOT 6
- Synchronous import not allowed HOT 6
- create a library and import react-loading-skeleton, and then used this lib into another lib throws erorr HOT 1
- Typescript complains in CJS modules after 3.3.0 (nodenext module resolution)
- i have npm v18 and skeleton loading animation is not working with me please any help HOT 4
- Error: Hydration failed because the initial UI does not match what was rendered on the server. HOT 1
- Inline is not removing br HOT 1
- How to create a skeleton for a img tag
- FEAT REQ - highlight width HOT 1
- Skeletons occlude other elements because of z-index HOT 1
- v3.4.0 available on NPM but not in repo. Legit release? HOT 2
- baseColor not working HOT 1
- Dark theme animation not visible HOT 4
- `hidden` prop does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-loading-skeleton.