mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
24
src/SkeletonPlaceholder/SkeletonPlaceholder.Story.svelte
Normal file
24
src/SkeletonPlaceholder/SkeletonPlaceholder.Story.svelte
Normal file
|
@ -0,0 +1,24 @@
|
|||
<script>
|
||||
import SkeletonPlaceholder from "./SkeletonPlaceholder.svelte";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
:global(.my--skeleton__placeholder--small) {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
:global(.my--skeleton__placeholder--medium) {
|
||||
height: 150px;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
:global(.my--skeleton__placeholder--large) {
|
||||
height: 250px;
|
||||
width: 250px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div style="height: 250px; width: 250px;">
|
||||
<SkeletonPlaceholder {...$$props} />
|
||||
</div>
|
17
src/SkeletonPlaceholder/SkeletonPlaceholder.stories.js
Normal file
17
src/SkeletonPlaceholder/SkeletonPlaceholder.stories.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { withKnobs, select } from "@storybook/addon-knobs";
|
||||
import Component from "./SkeletonPlaceholder.Story.svelte";
|
||||
|
||||
export default { title: "SkeletonPlaceholder", decorators: [withKnobs] };
|
||||
|
||||
const classes = {
|
||||
"my--skeleton__placeholder--small": "my--skeleton__placeholder--small",
|
||||
"my--skeleton__placeholder--medium": "my--skeleton__placeholder--medium",
|
||||
"my--skeleton__placeholder--large": "my--skeleton__placeholder--large",
|
||||
};
|
||||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
class: select("Classes with different sizes", classes),
|
||||
},
|
||||
});
|
7
src/SkeletonPlaceholder/SkeletonPlaceholder.svelte
Normal file
7
src/SkeletonPlaceholder/SkeletonPlaceholder.svelte
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div
|
||||
class:bx--skeleton__placeholder={true}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave />
|
1
src/SkeletonPlaceholder/index.js
Normal file
1
src/SkeletonPlaceholder/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as SkeletonPlaceholder } from "./SkeletonPlaceholder.svelte";
|
Loading…
Add table
Add a link
Reference in a new issue