An open API service indexing awesome lists of open source software.

https://github.com/krishna-suwal/simple-svelte-skeleton


https://github.com/krishna-suwal/simple-svelte-skeleton

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Simple Svelte Skeleton

Simple components for skeleton to use in svelte 😎

## Usage Example

Demo

![Demo 1](.github/Screenshot_1.png)

Import skeleton comonents

```javascript
import { Box, Column, Row } from "simple-svelte-skeleton";
```

Use the components

```html










```

## Install

Using `npm`:

````sh
npm install simple-svelte-skeleton
````

Using `yarn`:`

````sh
yarn add simple-svelte-skeleton
````

## API
For all the components `Column`, `Row` and `Box`, you can pass any CSS properties as props.

### ``

Stack components vertically and add spaces in-between. Currently it adds `8px` margin.

Props:

- All CSS properties
- *`stretch`* (boolean): Stretches the component so that it takes all the remaining space by adding inline CSS `flex-grow: 1`.

### ``

Stack components horizontally and add spaces in-between. Currently it adds `8px` margin.

Props:

- All CSS properties
- *`stretch`* (boolean): Stretches the component so that it takes all the remaining space by adding inline CSS `flex-grow: 1`.

### ``

A box made with `div` element.

Props:

- All CSS properties
- *`stretch`* (boolean): Stretches the component so that it takes all the remaining space by adding inline CSS `flex-grow: 1`.
- *`round`* (boolean): Makes the component circular by adding inline CSS `border-radius: 100%`.