0.0.16 • Published 2 months ago

@tanglemedia/svelte-starter-ui v0.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

@tanglemedia/svelte-starter-ui

UI package with some simple yet effective UI components, that when used together with Svelte, and Flowbite-Svelte will make your front-end just look absolutely stunning.

The UI library packages is built on top of Flowbite-Svelte, so the recomendation from the developers of the packages are to use it with Flowbite-Svelte and most importantly:

  • if the UI package has the component you are looking for, use it, else look for the component on the Flowbite-Svelte library, they probably will have it.

Demo

On this section we are going to display how you can use some of the components that the UI package provides on your svelte app.

Button

In this case the Button component would act as a anchor tag.

<script lang='ts'>
	import { Button } from "@tanglemedia/svelte-starter-ui";
	import { FontAwesomeIcon } from '@fortawesome/svelte-fontawesome';
</script>

<Button href="/posts/add" class="h-32">
    <div class="text-center flex flex-col gap-2 text-3xl">
        <FontAwesomeIcon icon={['far', 'square-plus']} size={'xl'}/>
        <span class="text-sm font-bold">{`UI Button`.toUpperCase()}</span>
    </div>
</Button>

Another interesting case you can do with the Button component from the UI package is background images and filter effect:

On this case the button will now display a background image and that image would have a filter with the primary color of the project, you can change that by changing the props of the component: Button

<script lang='ts'>
	import { Button } from "@tanglemedia/svelte-starter-ui";
	import { FontAwesomeIcon } from '@fortawesome/svelte-fontawesome';
</script>

<Button href="/posts/add" class="h-32" backgroundImage={background}>
    <div class="text-center flex flex-col gap-2 text-3xl">
        <FontAwesomeIcon icon={['far', 'square-plus']} size={'xl'}/>
        <span class="text-sm font-bold">{`UI Button with image`.toUpperCase()}</span>
    </div>
</Button>

For mode demos and to check out all the components, please visit our storybook website

0.0.16

2 months ago

0.0.15

2 months ago

0.0.14

3 months ago

0.0.13

3 months ago

0.0.12

3 months ago

0.0.11

3 months ago

0.0.10

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

4 months ago

0.0.5

4 months ago

0.0.6

4 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago