In your application root, the global app
can be managed. It contains two values:
browser: boolean
is false on SSR and true on CSRpathname: Writable<string>
gives the actual location
Without further modification, browser
only states if window
is defined, and pathname
gives the location at which the psge has been loaded when on the client-side (no SSR connection)
If you use a router, make it manage the app.pathname
value.
In your root loader - for example root layout with svelte-kit :
import { app } from 'svemantic';
import { browser } from '$app/environment';
import { page } from "$app/stores";
import type { Page } from '@sveltejs/kit';
app.browser = browser; // No need for reactivity here
page.subscribe((p: Page)=> app.pathname.set(p.url.pathname));
"Attributes" stand for HTML attributes while "Flags" are used for boolean HTML attributes.
If the names match, these follow and simply mean what was intended by Semantic-UI.
- Form forms and fields interractions
- Paged define
Accordions
,Tabs
andSteps
- Popup allows to bind popups to elements
- Messages are functions allowing standard small interractions with the user (alert, prompt, confirm, toast, ...)
- Modal designs custom modals
These are not components so to speak but common configurations of several components. Each are refered when used
The store i18n
contains a tree of all the translations.
All items are self-explanatory, beside :
cmd
who list regular command' (button) textfld
used byFields
andColumns
to write labels or titles from input name.