Svantic is a set of UI components for Svelte based on the Fomantic-UI framework.
-- Coming soon --
Note that you will need to have Node.js installed
npm install --save-dev svantic<Textfield bind:value filled label="Name" message="Enter your name" />
<h1>Hello {value}!</h1>
<script>
// import any components you want
import { Textfield } from 'svantic';
let value = 'world';
</script>Create a new project based on sveltejs/template
npx degit sveltejs/template svantic-app
cd svantic-app
npm installNOTE: There are of course other ways to set up a project using svelte. This is just the quickest way to start.
Add components
npm install --save-dev svanticModify file src/App.svelte in the following way
<script>
// optional import focus-visible polyfill only once
import 'focus-visible';
// import any components
import { Button, Checkbox } from 'svantic';
let checked = true;
</script>
<Checkbox bind:checked>Checkbox</Checkbox>
<p>Checkbox is {checked ? 'checked' : 'unchecked'}</p>
<Button
outlined
shaped
color="Red"
on:click={() => { checked = !checked }}
>
Inverse
</Button>...then start Rollup
npm run devNavigate to localhost:5000
- Clone this repo:
git clone https://github.com/ryu-man/svantic.git - Install dependencies:
npm i - Start building fomantic:
npm run build:fomantic - Start the automated build:
npm run build - Open url that console prints in your browser
Code released under MIT license.
Copyright ©, ryu-man.