jabama-co / svelte-admin Goto Github PK
View Code? Open in Web Editor NEWSvelte admin template
Home Page: https://jabama-co.github.io/svelte-admin
Svelte admin template
Home Page: https://jabama-co.github.io/svelte-admin
Feature Summary
I intend to implement a modal component with the following specifications:
How might the modal component look like?
<script>
import { Modal } from "svelte-admin";
const open = false
const title = ''
const toggle = () => open= !open
const props = {
/* properties */
}
</script>
<Modal {...props} {toggle} {open} {title}>
<!-- content -->
</Modal>
This implementation is almost experimental and is subject to change for the final look!
Feature Summary
I intend to implement a dropdown component with the following specifications:
How might the modal component look like?
<script>
import { Dropdown } from "svelte-admin";
const options = []
const setSelected = () => { /* set data */ }
</script>
<Dropdown on:select={setSelected} {options} />
Feature Summary
I intend to implement a table component with the following feature:
How might the table component look like?
<script>
import { Table } from "svelte-admin";
const props = {
bordered: true,
dark: false,
responsive: true,
// ...
}
</script>
<Table {...props}>
<thead>
<tr>
<!-- content -->
</tr>
</thead>
<tbody>
<tr>
<!-- content -->
</tr>
</tbody>
<Table>
I would like to create a text-field component that has the following features:
Specify input type(e.g. text, number, password)
Bind events(e.g. onInput,onChange, etc)
Set icon to input
Specify common input props (e.g. disabled, label , placeholder, class)
Ability to change to textarea control
set validation state
And it will be used as follows:
<script>
import { TextField } from "svelte-admin";
const props = {
placeholder: "enter first name",
label: "first name",
disabled: true,
valid: true
/* more */
}
let inputValue = ""
let focused = false
let changeValue = ""
let inputValue = ""
</script>
<Textfield
{...props}
textarea
bind:value={inputValue}
on:blur={() => focused = false}
on:focus={() => focused = true}
on:change={e => (changeValue = e.target.value)}
on:input={e => (inputValue = e.target.value)}>
/* icon element */
</Textfield>
Feature Summary
I intend to implement a button component with the following specifications:
How does the final Button component look like?
<script>
import { Button } from "svelte-admin";
function click() {
/* code */
}
const props = {
size: "md",
color: "primary",
disabled: true,
/* more */
}
</script>
<Button {...props} on:click={click)>
{text}
</Button>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.