1.0.3 • Published 2 years ago

@stacktics/cloudcode-svelte-ui v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Cloudcode Svelte UI

A project with some shareable UI components for use by the Cloudcode framework.

Summary

This repository defines components.

Usage

This module can be included in a Svelte project.

Installation

npm i --save @stacktics/cloudcode-svelte-ui

Components

Button

<script>
  import { Button } from '@stacktics/cloudcode-svelte-ui';
  
  function handleClick() {
    // handle click
  }
</script>

<Button color="blue" text="Submit" on:click={handleClick} />

Color can be: red, yellow, green, cyan, blue, magenta, gray.

Navbar

<script>

  import { Navbar } from '@stacktics/cloudcode-svelte-ui';
  
  
  let title = { Text: "Title", Link: "/" };
  let menu = [
	  { Link: "/1", Text: "Link One" },
	  { Link: "/2", Text: "Link Two" }
  ];
	
</script>

<Navbar
  title={title}
  menu={menu}
/>
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago