The components code can be found in
Find a demo on Vercel.
Probably you just want to copy the the svelte component file from src/lib/components, create your own version and import it as follows:
import AddressInput from '$lib/components/AddressInput.svelte'Or, if you want to install the library, you can do so using npm and then import it.
npm install @samhess/svelte-componentsimport {AddressInput, DataTable, Treemap} from '@samhess/svelte-components'<script>
import {AddressInput} from '@samhess/svelte-components'
/** @type {Props} */
let {data} = $props()
let {mapbox} = $derived(data)
let address = $state({
postcode: '',
city: '',
state: '',
country: ''
})
</script>
<form>
<AddressInput mapboxOptions="{mapbox}" deliver="{(results" ="{})" =""
>{Object.assign(address,results)}}>
</AddressInput>
</form><script>
import DataTable from '$lib/components/DataTable.svelte'
import {invalidateAll} from '$app/navigation'
/** @type {Props} */
let {data} = $props()
let {entity, records} = $derived(data)
</script>
<article class="prose">
<h1>Tables</h1>
<h2>DataTable</h2>
<p>
This is a sortable (click on column in table header) and optionally editable (double click on
table row) data table.
</p>
<DataTable {entity} {records} update="{()" ="">invalidateAll()}> </DataTable>
</article><script>
import {Treemap} from '@samhess/svelte-components'
const data = [
{
name: 'GOOG',
marketCap: 200,
performance1d: 2,
type: 'stock'
}
]
const evaluation = 'performance1d'
const structure = 'marketCap'
const grouping = ['type', 'name']
</script>
<article class="prose">
<h1>Charts</h1>
<h2>TreeMap</h2>
<Treemap {data} {structure} {grouping} {evaluation}> </Treemap>
</article>