Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 969 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 969 Bytes

Common components

GitLab Release (latest by SemVer)

Install

# add GitLab NPM registry to project scope
echo '@minetower:registry=https://gitlab.com/api/v4/packages/npm/' >> .npmrc

yarn add -D @minetower/ui-components

Components

  • Navbar
<script>
    import { Navbar } from '@minetower/ui-components'
</script>

<Navbar 
    title="Minecraft Tweaks"
    small_title="Tweaks"
    repo_url="/minecraft-tweaks"
    center_title />

Tailwind css

You must tell tailwind to keep track of these components for the classes, so do something like this:

// tailwind.config.js
const ui_components = ['Navbar']

module.exports = {
    content: [
        // other options
        ...ui_components.map((c) =>
            require.resolve(`@minetower/ui-components/src/${c}.svelte`)),
    ],
    // other options
}