# Likable Aurora (@likable-hair/svelte 5) > Svelte 5 (runes) component library by Likablehair. Every component is customizable through CSS variables; themes change only the look, at runtime. - Install: `npm i @likable-hair/svelte`; import components from `@likable-hair/svelte`. - Styles: `import '@likable-hair/svelte/tokens.css'` (components import it themselves), optional `@likable-hair/svelte/base.css` for the page. - Callbacks receive the native event; icons are SVG paths (`@mdi/js`). - Texts: English and Italian are built in and follow the `locale` prop of each component (other languages fall back to English; text props win); `setDefaultLocale('it')` in the root `+layout.svelte` sets the locale of every component, dates included. - Tab title: `setTitleTemplate('{title} · App')` in the root `+layout.svelte` lets the `PageHeader` of each page write the browser tab title; the layout `` stays for pages without one. - CSS: the library is in cascade layers, so app CSS and Tailwind utilities override it; Tailwind classes for the tokens via `@likable-hair/svelte/tailwind.css` (v4) or `@likable-hair/svelte/tailwind-preset` (v3). - Full version in a single file: https://svelte.likablehair.it/llms-full.txt ## Foundations - [Tokens](https://svelte.likablehair.it/tokens.md): `--global-*` variables for colors, shape, shadows, fonts, motion; themes and light/dark mode. - [CSS and Tailwind](https://svelte.likablehair.it/styling.md): cascade layer order, resets, Tailwind 3 and 4 setup, token classes. - [Page patterns](https://svelte.likablehair.it/patterns.md): whole pages (list, detail, form, dashboard) built only with the library and the tokens. - [AI agents](https://svelte.likablehair.it/agents.md): MCP server with the specs of the installed version and the aurora-design skill for coding agents; setup with `npx svelte-mcp init`. ## Components - [ActivableButton](https://svelte.likablehair.it/components/activable-button.md): Toggle button that stays pressed: every click flips `active` and then calls `onclick`, and the state is announced with `aria-pressed`. - [AlertBanner](https://svelte.likablehair.it/components/alert-banner.md): Message banner inside the page, with a colored icon, a title, a description, an optional action on the right (`appendSnippet`) and an optional close button. - [AsyncAutocomplete](https://svelte.likablehair.it/components/async-autocomplete.md): Autocomplete whose options come from a server: while the user types, it calls `searcher` with the text and shows the items it returns. - [Autocomplete](https://svelte.likablehair.it/components/autocomplete.md): Text field that searches a list of options (`items`) and picks one or, with `multiple`, more of them. - [Avatar](https://svelte.likablehair.it/components/avatar.md): Round picture of a person or a thing. - [AvatarGroup](https://svelte.likablehair.it/components/avatar-group.md): Row of overlapping avatars, for example the people assigned to a task. - [BarChart](https://svelte.likablehair.it/components/bar-chart.md): Bar chart drawn with chart.js. - [BoxList](https://svelte.likablehair.it/components/box-list.md): Grid of cards, each with an icon, a label and a description, usually the entry points of a section (settings, reports, tools). - [Button](https://svelte.likablehair.it/components/button.md): Button with three shapes (`buttonType`), four color variants (`variant`) and three sizes (`size`). - [Calendar](https://svelte.likablehair.it/components/calendar.md): Grid of the days of one month, to choose a day or, with `range`, a range of days. - [Checkbox](https://svelte.likablehair.it/components/checkbox.md): Checkbox with an optional label next to it. - [Chip](https://svelte.likablehair.it/components/chip.md): Compact label for tags, statuses, filters and selections, with seven color variants (`variant`) and two sizes (`size`). - [CircularLoader](https://svelte.likablehair.it/components/circular-loader.md): Circular loader. - [ColumnManager](https://svelte.likablehair.it/components/column-manager.md): Panel where the user picks the columns of a table: which ones are shown, in which order and which ones are pinned on the left. - [ConfirmDialog](https://svelte.likablehair.it/components/confirm-dialog.md): Dialog that asks to confirm an action, usually a delete: an icon in the tone of the action, the question as title, a description and two buttons, Cancel and the action. - [ConfirmOrCancelButtons](https://svelte.likablehair.it/components/confirm-or-cancel-buttons.md): Pair of buttons that closes a form or a dialog: a text "Cancel" button and a filled "Save" button, aligned to the end, with optional content (such as "Unsaved changes") at the start. - [CountriesAutocomplete](https://svelte.likablehair.it/components/countries-autocomplete.md): Autocomplete of countries, with their flags. - [DashboardShaper](https://svelte.likablehair.it/components/dashboard-shaper.md): Grid of widgets for a dashboard: `columns` equal columns, rows `--dashboard-shaper-row-height` tall, each widget placed by its `left`, `top`, `width` and `height` (the same shape saved by v4) and drawn by `widgetSnippet`. - [DashboardWidgetShape](https://svelte.likablehair.it/components/dashboard-widget-shape.md): Small outline of a widget size, `width` columns by `height` rows, as the size buttons of the `DashboardShaper` catalog draw it: each cell is `--dashboard-widget-shape-cell-size` wide, shrunk so that the shape fits in `--dashboard-widget-shape-max-width` by `--dashboard-widget-shape-max-height`. - [DataTable](https://svelte.likablehair.it/components/data-table.md): Table for server data, with a toolbar (search, `Filters`, the buttons of the app, "Columns"), a bar of actions on the selected rows and a footer with the pagination. - [DatePicker](https://svelte.likablehair.it/components/date-picker.md): Calendar panel to choose a day or, with `range`, a range of days: the title of the visible month between two arrows, above a `Calendar`. - [DatePickerTextField](https://svelte.likablehair.it/components/date-picker-text-field.md): Date field: type the date or choose it in a calendar. - [DateTimePickerTextField](https://svelte.likablehair.it/components/date-time-picker-text-field.md): Date and time field: type them or choose them in a panel with a calendar and the columns of hours and minutes. - [DescriptiveAvatar](https://svelte.likablehair.it/components/descriptive-avatar.md): Avatar with a title and a subtitle, for example a person with their role in a list, a sidebar or a user menu. - [Dialog](https://svelte.likablehair.it/components/dialog.md): Modal dialog on the browser's top layer (`<dialog>` with `showModal()`): it needs no z-index, the page behind is inert and does not scroll, focus stays inside and goes back where it was on close. - [Divider](https://svelte.likablehair.it/components/divider.md): Line that separates content. - [DotsLoader](https://svelte.likablehair.it/components/dots-loader.md): Three dots that light up in turn, a lighter alternative to `CircularLoader` for inline "typing" or "loading" states. - [Drawer](https://svelte.likablehair.it/components/drawer.md): Panel that slides in from a side of the screen (`position`), modal and on the browser's top layer (`<dialog>` with `showModal()`): it needs no z-index, the page behind is inert and does not scroll, focus stays inside and goes back where it was on close. - [Dropdown](https://svelte.likablehair.it/components/dropdown.md): Button that opens a list of options (`items`) and picks one or, with `multiple`, more of them: for toolbars, sorting and filters. - [FileInput](https://svelte.likablehair.it/components/file-input.md): Drop zone for files: the user drops files on it or clicks it (or focuses it and presses Enter or Space) to open the file picker. - [FileInputList](https://svelte.likablehair.it/components/file-input-list.md): FileInput with the chosen files listed below the zone: each row shows an icon in the color of the file type (a thumbnail for images), the name, the size and a button that removes it. - [FilterEditor](https://svelte.likablehair.it/components/filter-editor.md): Card that edits one filter condition: the field name with its icon, the operators of the field (side by side when they are up to four, otherwise a select) and the input of the value, which depends on the operator (text, number with unit, range, date, date range, period, last N days, options from a list, a search or countries, yes/no, or the app's input). - [Filters](https://svelte.likablehair.it/components/filters.md): Filter bar for lists and tables. - [FlagIcon](https://svelte.likablehair.it/components/flag-icon.md): Flag of a country, from the `flag-icons` set: 4:3 by default, square with `square`. - [GlobalSearchTextField](https://svelte.likablehair.it/components/global-search-text-field.md): Search of the whole app, as a command palette: a button that looks like a search field opens a dialog with a search box and the results of `searcher`, grouped by `group`, with the searched text highlighted. - [HierarchyMenu](https://svelte.likablehair.it/components/hierarchy-menu.md): Navigation menu of nested options, as in the sidebar of an app (`SidebarLayout` draws one from its `options`). - [HorizontalStackedProgress](https://svelte.likablehair.it/components/horizontal-stacked-progress.md): One bar split into colored segments, one per entry of `progresses`, each as wide as its share of the total, with a legend below. - [Icon](https://svelte.likablehair.it/components/icon.md): SVG icon from a path on a 24×24 viewBox, for example from `@mdi/js`. - [IconsDropdown](https://svelte.likablehair.it/components/icons-dropdown.md): Button that picks an icon from a grid, for example the heading level or the text alignment in an editor toolbar. - [LineChart](https://svelte.likablehair.it/components/line-chart.md): Line chart drawn with chart.js. - [LinkButton](https://svelte.likablehair.it/components/link-button.md): Text link with an animated underline: a short gradient stroke that grows to the full width on hover and focus, while the icon after the text slides forward. - [MediaQuery](https://svelte.likablehair.it/components/media-query.md): Renders `defaultSnippet` with the breakpoints of the window as flags (`xs`, `s`, `m`, `l`, `xl`, `sAndDown`, `mAndDown`, `lAndUp`, ...), to show different markup on phones, tablets and desktops. - [Menu](https://svelte.likablehair.it/components/menu.md): Floating surface anchored to an `activator`, for dropdowns, autocompletes, pickers, action and context menus. - [MenuOrDrawer](https://svelte.likablehair.it/components/menu-or-drawer.md): Shows its content in a `Menu` anchored to `activator` on wide screens and in a bottom `Drawer` on screens up to 1024px wide (`breakpoints.mAndDown`, the breakpoint of the whole library); `mode` forces one of the two. - [MenuOrDrawerOptions](https://svelte.likablehair.it/components/menu-or-drawer-options.md): Action menu: a list of options in a `MenuOrDrawer`, so a menu anchored to `activator` on wide screens and a bottom sheet on screens up to 1024px wide. - [ModeSwitch](https://svelte.likablehair.it/components/mode-switch.md): Switch for the light and dark mode of the page, with three icons side by side, like a segmented `TabSwitcher`: light, system (follows the operating system) and dark. - [MonthSelector](https://svelte.likablehair.it/components/month-selector.md): Grid of the twelve months, to choose one. - [NoData](https://svelte.likablehair.it/components/no-data.md): Empty state: an icon, a title, an optional description and optional actions (`children`), centered in the available space. - [PageHeader](https://svelte.likablehair.it/components/page-header.md): Header of a page: an optional link back, the title as a heading (`h1` by default, `headingLevel` to change it), a subtitle, a description and the page actions on the right, which wrap under the text when there is no room. - [Paginator](https://svelte.likablehair.it/components/paginator.md): Navigation between the pages of a paged list or table: first, previous, the page numbers, next and last. - [PeriodPicker](https://svelte.likablehair.it/components/period-picker.md): Field to choose a period, such as the range of a report or of a dashboard widget: a bar with the name of the period and its dates that opens a `PeriodSelector` in a menu, or in a bottom drawer on screens up to 1024px wide. - [PeriodSelector](https://svelte.likablehair.it/components/period-selector.md): Panel to choose a period: a column of presets (today, this month, ...), a month for a custom range (two side by side with `months={2}`), a relative period ("last 3 months", counting today) and, at the bottom, the start and end dates, which can also be typed. - [PieChart](https://svelte.likablehair.it/components/pie-chart.md): Donut or pie chart drawn with chart.js. - [ProgressBar](https://svelte.likablehair.it/components/progress-bar.md): Horizontal progress bar that fills up to `value / total`, with an optional `label` above it and the percentage on the right (`showValue`). - [RadioButton](https://svelte.likablehair.it/components/radio-button.md): Radio button with an optional label and description. - [RadioGroup](https://svelte.likablehair.it/components/radio-group.md): Group of radio buttons built from a list, inside a `<fieldset>` with `role="radiogroup"`: `label` is its legend, every radio shares a generated `name` so Tab enters the group and the arrow keys move the selection, and `disabled` and `required` work as in HTML forms. - [SearchBar](https://svelte.likablehair.it/components/search-bar.md): Search field: an `<input type="search">` in a `role="search"` landmark, with the magnifier, a button that empties it and an optional search button. - [Select](https://svelte.likablehair.it/components/select.md): Field that picks one option from a list, built on the native `<select>`: forms, `required`, the keyboard and the native picker on phones work as in HTML, and so do events (`onchange`, `oninput`, ...). - [SidebarLayout](https://svelte.likablehair.it/components/sidebar-layout.md): Page shell of an app: a sidebar on the left (logo, menu, user), a bar at the top and the content. - [SimpleTextField](https://svelte.likablehair.it/components/simple-text-field.md): Text input with an optional label, hint and validation state. - [Skeleton](https://svelte.likablehair.it/components/skeleton.md): Placeholder with a shimmer, shown while content loads. - [Switch](https://svelte.likablehair.it/components/switch.md): On/off toggle with an optional label next to it. - [Table](https://svelte.likablehair.it/components/table.md): Table of rows and columns. - [TabSwitcher](https://svelte.likablehair.it/components/tab-switcher.md): Row of tabs where one is selected (`bind:selected`). - [Textarea](https://svelte.likablehair.it/components/textarea.md): Multi-line text field with an optional label, hint, character counter and validation state. - [Timeline](https://svelte.likablehair.it/components/timeline.md): Events in time order: a marker on a line for each item, with its date or time, title and description. - [TimePicker](https://svelte.likablehair.it/components/time-picker.md): Panel to choose a time of day: a scrolling column of hours and one of minutes (every `minuteStep`), plus an AM/PM column on a 12-hour clock. - [TimePickerTextField](https://svelte.likablehair.it/components/time-picker-text-field.md): Time field: type the time or choose it in a panel of hours and minutes. - [Toaster](https://svelte.likablehair.it/components/toaster.md): Shows the toasts: short messages that appear in a corner of the screen and close by themselves. - [ToggleList](https://svelte.likablehair.it/components/toggle-list.md): Group of toggle buttons to pick one or more options, such as the services of a booking or the days of the week. - [Tooltip](https://svelte.likablehair.it/components/tooltip.md): Short description of an element, shown on hover after `appearTimeout` and right away on keyboard focus. - [YearPickerTextField](https://svelte.likablehair.it/components/year-picker-text-field.md): Year field: type the year or choose it in a scrolling grid of years. - [YearSelector](https://svelte.likablehair.it/components/year-selector.md): Scrolling grid of years, from `min` to `max`, to choose one.