You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Use Autocomplete for a text field that suggests matches while the user types. The React API stays small: pass a label, an array of suggestion strings, and the usual form-field props such as hint, error message, width, and `defaultValue` or `value` when you need them. Use the `Builder` story to explore the component with friendly preset controls, and use the other stories as fixed examples.',
98
126
},
127
+
page: ()=>(
128
+
<>
129
+
<Title/>
130
+
<Description/>
131
+
132
+
<h2>How to use the React component</h2>
133
+
<p>
134
+
Pass a required <code>label</code>, <code>name</code>, and an{' '}
135
+
<code>options</code> array of suggestion strings. Add{' '}
136
+
<code>hint</code> when the user needs extra guidance, and use{' '}
137
+
<code>errorMessage</code> when you need to show validation feedback.
138
+
</p>
139
+
<p>
140
+
Use <code>noResultsText</code> when your service needs custom empty
141
+
state wording, and use <code>width</code> or <code>inputWidth</code>{' '}
'A flexible button component based on the OFH Design System with multiple variants and states. If `href` is provided, the component renders as an anchor instead of a button. The `variant` changes the visual prominence only, not the semantic element.',
13
21
},
22
+
page: ()=>(
23
+
<>
24
+
<Title/>
25
+
<Description/>
26
+
27
+
<h2>How to use the React component</h2>
28
+
<p>
29
+
Use <code>Button</code> for the main action on a page or step. Pass
30
+
the visible label as <code>children</code> and choose a{' '}
31
+
<code>variant</code> when you need a different visual emphasis.
32
+
</p>
33
+
<p>
34
+
Add <code>href</code> when the action should navigate to another
35
+
page. Leave <code>href</code> unset when the action should behave as
0 commit comments