![From Academia to Industry](https://cdn.sanity.io/images/cgdhsj6q/production/70501690bf807891573e259da9719cf24302c7e3-4288x2848.jpg?w=400&fit=max&auto=format)
Employee Spotlight
From Academia to Industry
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
@juspay/svelte-ui-components
Advanced tools
This library provides a collection of reusable UI components built with [Svelte](https://svelte.dev/).
Readme
This library provides a collection of reusable UI components built with Svelte.
This library is publish on npm & can be installed via any npm client. Use the following command to install the library.
npm install @juspay/svelte-ui-components
The library contains a collection of components that can be imported & used in your svelte project.
All of the components can be easily imported from the 'svelte-ui-components' package.
<script lang="ts">
import { Button, defaultButtonProperties } from '@juspay/svelte-ui-components';
</script>
<Button properties={{ ...defaultButtonProperties, text: 'Click' }} />
Each component comes with a set of configuration options that can be used to customize the component. There are two ways to customize the component.
Using css variables:
Using props:
<script lang="ts">
import {
Button,
type ButtonProperties,
defaultButtonProperties
} from '@juspay/svelte-ui-components';
const buttonProperties: ButtonProperties = {
...defaultButtonProperties,
text: 'Submit'
};
function handleSubmitClick() {
// handle click
}
</script>
<div class="form">
<Button properties={buttonProperties} on:click={handleSubmitClick} />
</div>
<style>
.form {
--button-color: black;
--button-text-color: white;
/* Other styling values */
}
</style>
pnpm install
pnpm run test
FAQs
This library provides a collection of reusable UI components built with [Svelte](https://svelte.dev/).
The npm package @juspay/svelte-ui-components receives a total of 283 weekly downloads. As such, @juspay/svelte-ui-components popularity was classified as not popular.
We found that @juspay/svelte-ui-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Employee Spotlight
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
Security News
Git dependencies in open source packages can introduce significant risks, including lack of version control, stability issues, dependency drift, and difficulty in auditing, making them potential targets for supply chain attacks.
Security News
Node.js has added experimental support for TypeScript, a move that highlights the growing importance of TypeScript in modern development.