Comments (1)
Hi @lmarquinez 👋
Thanks for raising this issue. ngx-skeleton-loader
already supports it 🎉
What you need to do on your end is use appearance="custom-content"
and add your content inside the component.
Live Demo: https://stackblitz.com/edit/ngx-skeleton-custom-content-sample?file=src%2Fapp%2Fapp.component.html
Readme.md documentation: https://github.com/willmendesneto/ngx-skeleton-loader?tab=readme-ov-file#options
<div class="item">
<div style="width: 50%">
<ngx-skeleton-loader
appearance="custom-content"
[theme]="{ height: '250px' }"
>
<svg viewBox="0 0 312 103" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="312" height="102" fill="white" />
<path
d="M14 49.5338C5.2 43.5338 1 47.3671 0 50.0338V102.034H312V44.5338C312 35.7338 303.667 37.8671 299.5 40.0338C292.167 44.5338 276.3 54.4338 271.5 58.0338C266.7 61.6338 261.833 62.2005 260 62.0338H248C243.2 62.0338 240 60.7005 239 60.0338C237.833 59.2005 233.5 56.0338 225.5 50.0338C217.5 44.0338 210.167 47.2004 207.5 49.5338C204.833 51.8671 197.6 58.0338 190 64.0338C182.4 70.0338 176.833 65.2005 175 62.0338C168.167 48.3671 153.5 19.3338 149.5 12.5338C144.7 6.13377 138.5 9.8671 136 12.5338C130.667 18.3671 118.8 31.3338 114 36.5338C109.2 41.7338 102.667 42.3671 100 42.0338H76C66.5 42.0338 48 56.5338 42 59.0338C37.2 61.0338 32.3333 59.8671 30.5 59.0338C28.6667 58.3671 22.8 55.5338 14 49.5338Z"
fill="#EFEFEF"
/>
<path
d="M14 49.5338C5.2 43.5338 1 47.3671 0 50.0338V102.034H312V44.5338C312 35.7338 303.667 37.8671 299.5 40.0338C292.167 44.5338 276.3 54.4338 271.5 58.0338C266.7 61.6338 261.833 62.2005 260 62.0338H248C243.2 62.0338 240 60.7005 239 60.0338C237.833 59.2005 233.5 56.0338 225.5 50.0338C217.5 44.0338 210.167 47.2004 207.5 49.5338C204.833 51.8671 197.6 58.0338 190 64.0338C182.4 70.0338 176.833 65.2005 175 62.0338C168.167 48.3671 153.5 19.3338 149.5 12.5338C144.7 6.13377 138.5 9.8671 136 12.5338C130.667 18.3671 118.8 31.3338 114 36.5338C109.2 41.7338 102.667 42.3671 100 42.0338H76C66.5 42.0338 48 56.5338 42 59.0338C37.2 61.0338 32.3333 59.8671 30.5 59.0338C28.6667 58.3671 22.8 55.5338 14 49.5338Z"
fill="black"
fill-opacity="0.1"
/>
</svg>
</ngx-skeleton-loader>
</div>
</div>
Nothing needs to be done here 💯 Once again, thanks for raising that and to use ngx-skeleton-loader module!
from ngx-skeleton-loader.
Related Issues (20)
- Skeleton loader animation scrolls outside of mat-card container HOT 1
- Suggestion: adjust peerDependencies to match ng 12 and above HOT 3
- How to change the pulse color ? HOT 2
- Support angular 14 HOT 5
- Add oblique animation option
- "Starting dev server" for a long time HOT 1
- Problem with using Appearance="line" in Mat-Table HOT 1
- Error in component.d.ts after Importing the ngx-skeleton-loader to app.module.ts in Angular 14.2.7 HOT 7
- Possible Angular Universal memory leak HOT 6
- Module parse failed: Unexpected token (56:32) HOT 5
- Unable run in Angular 11 HOT 2
- Version 8 is not published in Releases HOT 2
- Error Angular 10 HOT 1
- Make ngx-skeleton-loader standalone compliant HOT 3
- `\`NgxSkeletonLoaderModule\` is already loaded and it might cause issues. To avoid that, import the module only once in your app. HOT 3
- Parent Container dependent Styling HOT 4
- Ivy Distribution Error HOT 6
- Component theme should not replace forRoot theme HOT 3
- v13 support 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 ngx-skeleton-loader.