Skip to content

Commit 34d5af0

Browse files
authored
API docs for Material Components (#26)
1 parent 9863593 commit 34d5af0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2648
-351
lines changed

docs/astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
},
2929
integrations: [
3030
starlight({
31-
title: "Slint Docs",
31+
title: "Material UI",
3232
logo: {
3333
src: "./src/assets/slint-logo-small-light.svg",
3434
},
@@ -44,8 +44,8 @@ export default defineConfig({
4444
{ label: "Style", link: "style" },
4545

4646
{
47-
label: "Basic Widgets",
48-
autogenerate: { directory: "basic-widgets" },
47+
label: "Components",
48+
autogenerate: { directory: "components" },
4949
},
5050
],
5151
plugins: [
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
3+
title: CheckState
4+
description: CheckState content
5+
---
6+
7+
<!-- unchecked,
8+
partially_checked,
9+
checked, -->
10+
11+
`CheckState`
12+
13+
This enum is used to define the state of a checkbox.
14+
15+
* **`unchecked`**: The checkbox is unchecked.
16+
* **`partially_checked`**: The checkbox is partially checked.
17+
* **`checked`**: The checkbox is checked.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
3+
title: FABStyle
4+
description: FABStyle content
5+
---
6+
7+
`FABStyle`
8+
9+
This enum is used to define the style of a Floating Action Button (FAB).
10+
11+
* **`small`**: A small floating action button.
12+
* **`standard`**: The standard floating action button size.
13+
* **`large`**: A large floating action button.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
3+
title: IconButtonItem
4+
description: IconButtonItem content
5+
---
6+
7+
`IconButtonItem`
8+
9+
This structure represents a IconButtonItem with x and y coordinate
10+
11+
- **`icon`** (_image_): The icon to display in the button.
12+
- **`tooltip`** (_string_): The tooltip to display when hovering over the button.
13+
- **`enabled`** (_bool_): Whether the button is enabled.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
3+
title: SegmentedItem
4+
description: SegmentedItem content
5+
---
6+
7+
`SegmentedItem`
8+
9+
This structure represents an item in a segmented button control.
10+
11+
- **`icon`** (_image_): The icon to display for the item.
12+
- **`text`** (_string_): The text label for the item.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
3+
title: Time
4+
description: Time content
5+
---
6+
7+
`Time`
8+
9+
This structure represents a time value with hour, minute, and second fields.
10+
11+
- **`hour`** (_int_): The hour component of the time.
12+
- **`minute`** (_int_): The minute component of the time.
13+
- **`second`** (_int_): The second component of the time.

docs/src/content/docs/basic-widgets/button.mdx

Lines changed: 0 additions & 106 deletions
This file was deleted.

docs/src/content/docs/basic-widgets/checkbox.mdx

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/src/content/docs/basic-widgets/switch.mdx

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)