Svelte Foundry is a headless UI library designed for Svelte and built with Tailwind CSS. It offers a range of customizable components to help you build modern, performant web applications.
Check out the example page to see the components in action.
Svelte Foundry currently offers the following components:
Note: Svelte Foundry is in very early development. Expect frequent updates and changes.
Ensure you have the following tools installed:
If you don't already have a Svelte project, you can set one up using the following commands:
# Create a new Svelte project
npx degit sveltejs/template my-svelte-app
cd my-svelte-app
# Install dependencies
npm install
# or
yarn install
You can install Svelte Foundry using npm or yarn:
npm install svelte-foundry
# or
yarn add svelte-foundry
After installation, you can start using the components in your Svelte project:
<script>
import {
Button,
TextInput,
Checkbox,
Switch,
Card,
TabPanel,
Badge,
Modal,
Toast
} from 'svelte-foundry';
</script>
<Button>Click Me</Button>
<TextInput placeholder="Enter text" />
<Checkbox label="Accept terms" />
<Switch />
<Card>Card Content</Card>
<TabPanel>
<div slot="tab">Tab 1</div>
<div slot="panel">Panel 1 Content</div>
</TabPanel>
<Badge>New</Badge>
<Modal>Modal Content</Modal>
<Toast message="Hello, World!" />
This project is licensed under the Apache License 2.0. See the LICENSE file for details.