icons and visual components
use the visual prop exposed by the receiving component. a component passed to Icon is different from an image URL passed to iconSrc, and neither is a snippet passed to iconContent.
a consumer-owned icon
create these two files:
<!-- SearchMark.svelte -->
<span aria-hidden="true">⌕</span><!-- ReadingSearch.svelte -->
<script>
import { Input, FieldLabel } from '@ciabi/loafkit-ui';
import SearchMark from './SearchMark.svelte';
let query = $state('');
</script>
<FieldLabel htmlFor="reading-search">Search saved articles</FieldLabel>
<Input id="reading-search" Icon={SearchMark} bind:value={query} />the label names the input, so the search mark is decorative. your own icon library can supply the component instead. don’t import the documentation site’s private icon paths into a consumer app.
images and snippets
image props take URLs that your app serves. snippet props take Svelte snippets, which can compose several elements. check the app artwork table for the supported inputs on each component.
the installed library uses icons internally, but it doesn’t export an icon catalog or an Icon wrapper. exact component names and accessibility behavior belong to the icon package you choose. for icon-only actions, make sure the control has a useful name and enough visible context.