Closed thollander closed 1 year ago
Currently, VtmnSkeleton component is not managing the possibility to give a height, it always looks like this :
VtmnSkeleton
We’d like to be able in our use case to manage its height :
To do so, we have an override in Svelte implementation doing this :
<script> import { VtmnSkeleton } from '@vtmn/svelte'; import { cn } from '@nfs/ecommerce-front-utils/dist/aliases'; export let height = '13rem'; </script> <style> div :global(.resize-skeleton) { height: var(--custom-height); } </style> <div style="--custom-height: {height}"> <VtmnSkeleton class={cn('resize-skeleton', $$props.class)} /> </div>
The goal is to remove this override and make it possible directly in Vtmn.
Currently,
VtmnSkeleton
component is not managing the possibility to give a height, it always looks like this :We’d like to be able in our use case to manage its height :
To do so, we have an override in Svelte implementation doing this :
The goal is to remove this override and make it possible directly in Vtmn.