Package Exports
- svelte-forge-ui
- svelte-forge-ui/README.md
- svelte-forge-ui/icons/index.d.ts
- svelte-forge-ui/icons/index.js
Readme
🔥 svelte-forge-ui 🔥
It's a component library for Svelte. These component designs are lightweight and flexible.
## Table of Contents
The Problem
We require a collection of simple components that have flexibility to be modified. We require this to avoid always creating several components of the same thing, avoiding duplicating code, in addition to already having different style formats for each component.
This Solution
svelte-forge-ui
is a lightweight and easy-to-use solution, which seeks to give its users the different components that exist with different style formats, in addition to allowing flexibility when modifying certain parameters of the components.
[!NOTE] These collections of components below use tailwind to help with a much faster design to implement.
Installation
The component package is distributed through npm, which is included with node. You should install it as a dependencies
.
npm:
npm install svelte-forge-ui
Yarn:
yarn add svelte-forge-ui
Example How to use
We import the library into the <script></script>
tags and create a variable that will take the data from InputFloat.
import { InputFloat } from 'svelte-forge-ui';
let inputFloat = '';
Now let's call the <InputFloat/>
component and set the required properties nameInput, labelText and valueInput.
<InputFloat
type="text"
className=""
nameInput="input-float"
labelText="Input Float"
textSize="sm"
bind:valueInput={inputFloat}
/>
The other properties found are not mandatory but are properties that allow you to modify the style of the component.