A small collection of Svelte components. They're accessible, customizable, and don't try to do too much.
# npm
npm install snap-ui
# pnpm
pnpm add snap-ui
# yarn
yarn add snap-ui
# bun
bun add snap-ui
SnapUI uses Tailwind v4.1 with the typography and forms plugins. See the website for a more detailed tutorial on how to install.
npm install -D @tailwindcss/typography
npm install -D @tailwindcss/forms
<Snap>.Button bgColour="ffffff" id="dropdownButton">Dropdown</Snap.Button>
<Snap>.Dropdown targetId="dropdownButton">
<ul>
<li>Thing 1</li>
<hr/>
<li>Thing 2</li>
</ul>
</Snap.Dropdown>
# Clone the repository
git clone https://github.com/coquobxttr/snap-ui.git
# Install dependencies
npm install
# Start development server
npm run dev
# Run tests
npm test
# Build
npm run build
MIT - see LICENSE file for details.