@neo4j-ndl/react 4.16.8 → 4.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -2
- package/skills/ndl-react/SKILL.md +152 -0
- package/skills/ndl-react/components/accordion.md +386 -0
- package/skills/ndl-react/components/ai/code-preview.md +128 -0
- package/skills/ndl-react/components/ai/file-tag.md +90 -0
- package/skills/ndl-react/components/ai/image-tag.md +91 -0
- package/skills/ndl-react/components/ai/more-files.md +73 -0
- package/skills/ndl-react/components/ai/presence.md +54 -0
- package/skills/ndl-react/components/ai/preview.md +498 -0
- package/skills/ndl-react/components/ai/prompt.md +362 -0
- package/skills/ndl-react/components/ai/reasoning.md +95 -0
- package/skills/ndl-react/components/ai/response.md +1109 -0
- package/skills/ndl-react/components/ai/suggestion.md +84 -0
- package/skills/ndl-react/components/ai/thinking.md +43 -0
- package/skills/ndl-react/components/ai/tool-call.md +43 -0
- package/skills/ndl-react/components/ai/user-bubble.md +187 -0
- package/skills/ndl-react/components/avatar.md +169 -0
- package/skills/ndl-react/components/banner.md +225 -0
- package/skills/ndl-react/components/box.md +39 -0
- package/skills/ndl-react/components/breadcrumbs.md +245 -0
- package/skills/ndl-react/components/checkbox.md +269 -0
- package/skills/ndl-react/components/clean-icon-button.md +294 -0
- package/skills/ndl-react/components/clipboard-button.md +154 -0
- package/skills/ndl-react/components/code-block.md +276 -0
- package/skills/ndl-react/components/code.md +68 -0
- package/skills/ndl-react/components/color-picker.md +131 -0
- package/skills/ndl-react/components/conditional-wrap.md +46 -0
- package/skills/ndl-react/components/data-grid.md +3121 -0
- package/skills/ndl-react/components/date-picker.md +652 -0
- package/skills/ndl-react/components/dialog.md +485 -0
- package/skills/ndl-react/components/dismissible-tag.md +136 -0
- package/skills/ndl-react/components/divider.md +96 -0
- package/skills/ndl-react/components/drawer.md +543 -0
- package/skills/ndl-react/components/dropdown-button.md +161 -0
- package/skills/ndl-react/components/dropzone.md +371 -0
- package/skills/ndl-react/components/filled-button.md +26 -0
- package/skills/ndl-react/components/flex.md +82 -0
- package/skills/ndl-react/components/graph-label.md +167 -0
- package/skills/ndl-react/components/icon-button-array.md +187 -0
- package/skills/ndl-react/components/icon-button.md +193 -0
- package/skills/ndl-react/components/inline-edit.md +209 -0
- package/skills/ndl-react/components/kbd.md +63 -0
- package/skills/ndl-react/components/loading-bar.md +43 -0
- package/skills/ndl-react/components/loading-spinner.md +57 -0
- package/skills/ndl-react/components/logo.md +57 -0
- package/skills/ndl-react/components/menu.md +993 -0
- package/skills/ndl-react/components/modal.md +27 -0
- package/skills/ndl-react/components/next/tree-view.md +966 -0
- package/skills/ndl-react/components/outlined-button.md +26 -0
- package/skills/ndl-react/components/popover.md +283 -0
- package/skills/ndl-react/components/progress-bar.md +70 -0
- package/skills/ndl-react/components/radio.md +150 -0
- package/skills/ndl-react/components/read-only-tag.md +96 -0
- package/skills/ndl-react/components/segmented-control.md +200 -0
- package/skills/ndl-react/components/select-icon-button.md +183 -0
- package/skills/ndl-react/components/select.md +530 -0
- package/skills/ndl-react/components/selectable-tag.md +203 -0
- package/skills/ndl-react/components/side-navigation.md +652 -0
- package/skills/ndl-react/components/skeleton.md +274 -0
- package/skills/ndl-react/components/slider.md +308 -0
- package/skills/ndl-react/components/spotlight.md +796 -0
- package/skills/ndl-react/components/status-indicator.md +57 -0
- package/skills/ndl-react/components/status-label.md +132 -0
- package/skills/ndl-react/components/switch.md +167 -0
- package/skills/ndl-react/components/tabs.md +433 -0
- package/skills/ndl-react/components/tag.md +91 -0
- package/skills/ndl-react/components/text-area.md +178 -0
- package/skills/ndl-react/components/text-button.md +25 -0
- package/skills/ndl-react/components/text-input.md +475 -0
- package/skills/ndl-react/components/text-link.md +119 -0
- package/skills/ndl-react/components/time-picker.md +137 -0
- package/skills/ndl-react/components/timezone-picker.md +496 -0
- package/skills/ndl-react/components/tooltip.md +478 -0
- package/skills/ndl-react/components/tree-view.md +545 -0
- package/skills/ndl-react/components/typography.md +72 -0
- package/skills/ndl-react/components/wizard.md +152 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Wizard
|
|
2
|
+
|
|
3
|
+
Import: `import { Wizard } from '@neo4j-ndl/react'`
|
|
4
|
+
|
|
5
|
+
## Props
|
|
6
|
+
|
|
7
|
+
### Wizard
|
|
8
|
+
|
|
9
|
+
| Prop | Type | Required | Default | Description |
|
|
10
|
+
|------|------|----------|---------|-------------|
|
|
11
|
+
| `activeStepIndex` | `number` | ✅ | | Zero-based index of the active step |
|
|
12
|
+
| `alignment` | `'middle' \| 'top'` | | `middle` | Alignment of labels/content, is set to `middle` for horizontal orientation and can be set to `top` or `middle` for vertical orientation and is not applicable when `orientation` is undefined |
|
|
13
|
+
| `as` | `ElementType<any, keyof IntrinsicElements>` | | | An override of the default HTML tag of the root of the component. Can also be another React component. |
|
|
14
|
+
| `orientation` | `'horizontal' \| 'vertical'` | | `horizontal` | Layout orientation of the wizard |
|
|
15
|
+
| `ref` | `any` | | | A ref to apply to the root element. |
|
|
16
|
+
| `size` | `'large' \| 'small'` | | `large` | Visual size of the wizard |
|
|
17
|
+
| `steps` | `Step[]` | ✅ | | Steps to display in the wizard |
|
|
18
|
+
|
|
19
|
+
Where type `Step` is defined as: `{ content: string | React.JSX.Element; status?: 'default' | 'error' }`. To highlight a step as error, set the `status` to `error`.
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
### Error State
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
27
|
+
|
|
28
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
29
|
+
|
|
30
|
+
const Component = () => {
|
|
31
|
+
return (
|
|
32
|
+
<Wizard
|
|
33
|
+
orientation="horizontal"
|
|
34
|
+
activeStepIndex={1}
|
|
35
|
+
steps={[
|
|
36
|
+
{ content: 'Step 1' },
|
|
37
|
+
{ content: 'Step 2', status: 'error' },
|
|
38
|
+
{ content: 'Step 3' },
|
|
39
|
+
{ content: 'Step 4' },
|
|
40
|
+
]}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default Component;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Horizontal
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
52
|
+
|
|
53
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
54
|
+
|
|
55
|
+
const Component = () => {
|
|
56
|
+
return (
|
|
57
|
+
<Wizard
|
|
58
|
+
orientation="horizontal"
|
|
59
|
+
alignment="middle"
|
|
60
|
+
activeStepIndex={1}
|
|
61
|
+
steps={[
|
|
62
|
+
{ content: 'Step 1' },
|
|
63
|
+
{ content: 'Step 2' },
|
|
64
|
+
{ content: 'Step 3' },
|
|
65
|
+
{ content: 'Step 4' },
|
|
66
|
+
]}
|
|
67
|
+
/>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default Component;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Horizontal Small
|
|
75
|
+
|
|
76
|
+
```tsx
|
|
77
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
78
|
+
|
|
79
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
80
|
+
|
|
81
|
+
const Component = () => {
|
|
82
|
+
return (
|
|
83
|
+
<Wizard
|
|
84
|
+
orientation="horizontal"
|
|
85
|
+
size="small"
|
|
86
|
+
alignment="middle"
|
|
87
|
+
activeStepIndex={1}
|
|
88
|
+
steps={[
|
|
89
|
+
{ content: 'Step 1' },
|
|
90
|
+
{ content: 'Step 2' },
|
|
91
|
+
{ content: 'Step 3' },
|
|
92
|
+
{ content: 'Step 4' },
|
|
93
|
+
]}
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export default Component;
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Vertical
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
105
|
+
|
|
106
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
107
|
+
|
|
108
|
+
const Component = () => {
|
|
109
|
+
return (
|
|
110
|
+
<Wizard
|
|
111
|
+
orientation="vertical"
|
|
112
|
+
alignment="middle"
|
|
113
|
+
activeStepIndex={1}
|
|
114
|
+
steps={[
|
|
115
|
+
{ content: 'Step 1' },
|
|
116
|
+
{ content: 'Step 2' },
|
|
117
|
+
{ content: 'Step 3' },
|
|
118
|
+
{ content: 'Step 4' },
|
|
119
|
+
]}
|
|
120
|
+
/>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export default Component;
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Vertical Small
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
131
|
+
|
|
132
|
+
import { Wizard } from '@neo4j-ndl/react';
|
|
133
|
+
|
|
134
|
+
const Component = () => {
|
|
135
|
+
return (
|
|
136
|
+
<Wizard
|
|
137
|
+
orientation="vertical"
|
|
138
|
+
size="small"
|
|
139
|
+
alignment="middle"
|
|
140
|
+
activeStepIndex={1}
|
|
141
|
+
steps={[
|
|
142
|
+
{ content: 'Step 1' },
|
|
143
|
+
{ content: 'Step 2' },
|
|
144
|
+
{ content: 'Step 3' },
|
|
145
|
+
{ content: 'Step 4' },
|
|
146
|
+
]}
|
|
147
|
+
/>
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export default Component;
|
|
152
|
+
```
|