slint/ui-libraries/material/docs
dependabot[bot] 4601238f34
Some checks failed
autofix.ci / format_fix (push) Has been cancelled
autofix.ci / lint_typecheck (push) Has been cancelled
autofix.ci / ci (push) Has been cancelled
build(deps): bump the npm-patch-updates group with 9 updates (#10317)
Bumps the npm-patch-updates group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [fs-extra](https://github.com/jprichardson/node-fs-extra) | `11.3.2` | `11.3.3` |
| [esbuild](https://github.com/evanw/esbuild) | `0.27.1` | `0.27.2` |
| [html-react-parser](https://github.com/remarkablemark/html-react-parser) | `5.2.10` | `5.2.11` |
| [@expressive-code/core](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/@expressive-code/core) | `0.41.4` | `0.41.5` |
| [@iconify-json/tabler](https://github.com/iconify/icon-sets) | `1.2.23` | `1.2.24` |
| [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) | `2.3.8` | `2.3.10` |
| [@expressive-code/plugin-line-numbers](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/@expressive-code/plugin-line-numbers) | `0.41.4` | `0.41.5` |
| [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) | `5.16.5` | `5.16.6` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `4.0.15` | `4.0.16` |


Updates `fs-extra` from 11.3.2 to 11.3.3
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.3.2...11.3.3)

Updates `esbuild` from 0.27.1 to 0.27.2
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.1...v0.27.2)

Updates `html-react-parser` from 5.2.10 to 5.2.11
- [Release notes](https://github.com/remarkablemark/html-react-parser/releases)
- [Changelog](https://github.com/remarkablemark/html-react-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/remarkablemark/html-react-parser/compare/v5.2.10...v5.2.11)

Updates `@expressive-code/core` from 0.41.4 to 0.41.5
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/@expressive-code/core/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/@expressive-code/core@0.41.5/packages/@expressive-code/core)

Updates `@iconify-json/tabler` from 1.2.23 to 1.2.24
- [Commits](https://github.com/iconify/icon-sets/commits)

Updates `@biomejs/biome` from 2.3.8 to 2.3.10
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.10/packages/@biomejs/biome)

Updates `@expressive-code/plugin-line-numbers` from 0.41.4 to 0.41.5
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/@expressive-code/plugin-line-numbers/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/@expressive-code/plugin-line-numbers@0.41.5/packages/@expressive-code/plugin-line-numbers)

Updates `astro` from 5.16.5 to 5.16.6
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.16.6/packages/astro)

Updates `vitest` from 4.0.15 to 4.0.16
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.16/packages/vitest)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-version: 11.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: esbuild
  dependency-version: 0.27.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: html-react-parser
  dependency-version: 5.2.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: "@expressive-code/core"
  dependency-version: 0.41.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: "@iconify-json/tabler"
  dependency-version: 1.2.24
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: "@expressive-code/plugin-line-numbers"
  dependency-version: 0.41.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: astro
  dependency-version: 5.16.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
- dependency-name: vitest
  dependency-version: 4.0.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-patch-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-22 13:26:27 +02:00
..
public material: Align favicons with docs.slint.dev (https://github.com/slint-ui/material-components/issues/77) 2025-09-18 15:47:45 +02:00
src Created a close-popup() method on SearchBar in material components (#10176) 2025-12-08 09:29:24 +02:00
tests material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00
vendor/integration build(deps): bump @biomejs/biome from 2.2.6 to 2.3.2 (#9926) 2025-11-03 10:47:12 +02:00
astro.config.ts material: Align favicons with docs.slint.dev (https://github.com/slint-ui/material-components/issues/77) 2025-09-18 15:47:45 +02:00
biome.json build(deps): bump @biomejs/biome from 2.2.6 to 2.3.2 (#9926) 2025-11-03 10:47:12 +02:00
ec.config.mjs build(deps): bump @biomejs/biome from 2.2.6 to 2.3.2 (#9926) 2025-11-03 10:47:12 +02:00
MIGRATION.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00
package.json build(deps): bump the npm-patch-updates group with 9 updates (#10317) 2025-12-22 13:26:27 +02:00
playwright.config.ts material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00
README.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00
tailwind.config.js material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00
tsconfig.json material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00
vscode.tailwind.json material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00

Slint Material Component Documentation

Prerequisites

  • Rust
  • Node.js
  • pnpm

🚀 Project Structure

The documentation site is built with Astro Starlight and reuses it's project structure.

docs/
├── public/
├── src/
│   ├── assets/
│   ├── content/
│   │   ├── docs/
│   │   └── config.ts
│   └── env.d.ts
├── tests/
├── astro.config.mjs
├── package.json
├── tsconfig.json
└──

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Images can be added to src/assets/ and embedded in Markdown with a relative link. They will be optimized for download size and also their width and height will be extracted so the framework can render them without ugly content shifts.

Static assets, like favicons, can be placed in the public/ directory. Note that images in this folder will not be processed and optimized by Starlight.

Building the docs

The docs use a lot of autogenerated content. First create all the screenshots which will be placed at src/assets/generated/.

Generate the screenshots:

cd ui-libraries/material
cargo run -p slint-docsnapper -- -Lmaterial=$PWD/src/material.slint docs

Build the docs:

pnpm i
pnpm run build

This will build the site and place it in dist/.

Live edit the docs

To run the live hot reloading dev server run in the astro directory:

cd docs/
pnpm start

This will start the dev server at localhost:4321/docs/.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm i Installs dependencies
pnpm start Starts local dev server at localhost:4321
pnpm build Build your production site to ./dist/
pnpm preview Preview your build locally, before deploying
pnpm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

👀 Want to learn more about Astro and Starlight?

Check out Starlights docs, read the Astro documentation, or jump into the Astro Discord server.