@foundationui/smart-input
Advanced tools
Comparing version 1.0.45 to 1.0.46
{ | ||
"name": "@foundationui/smart-input", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "Smart input/textarea component for React. Learns to provide inline, tab-completeable suggestions.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -27,5 +27,5 @@ # `<SmartInput>` | ||
- [CSS: tailwind](https://jsbin.com/difibux/edit?html,js,output) | ||
- [CSS-in-JS: inline styles](https://jsbin.com/qebozab/edit?html,js,output) | ||
- [CSS-in-JS: styled components](https://jsbin.com/faperes/edit?html,js,output) | ||
- [Tailwind](https://jsbin.com/difibux/edit?html,js,output) | ||
- [inline styles](https://jsbin.com/qebozab/edit?html,js,output) | ||
- [styled-components](https://jsbin.com/faperes/edit?html,js,output) | ||
@@ -52,3 +52,3 @@ ## Install | ||
The identifier of your model. Can be shared across different inputs, or unique per input. | ||
The identifier of your model. Can be shared across different inputs, or unique per input. If you don't specify one, sample completions will be generated. | ||
@@ -77,3 +77,3 @@ #### `value: String` | ||
#### `renderSuggestion: Function` | ||
#### `renderCompletion: Function` | ||
@@ -85,3 +85,3 @@ Arguments: `props: Any` | ||
```jsx | ||
renderSuggestion={props => <span {...props} />} | ||
renderCompletion={props => <span {...props} />} | ||
``` | ||
@@ -91,6 +91,2 @@ | ||
#### `className: string` (optional) | ||
Class name for the SmartInput wrapper div. | ||
#### `multiline: Boolean` (optional) | ||
@@ -116,4 +112,17 @@ | ||
#### `disabled: Boolean` (optional) | ||
Whether the input is editable. If true, the input is read-only. | ||
#### `safeMode: Boolean` (optional) | ||
Whether to run in safe mode. In safe mode, no completions will be generated or request to the user, but your input will still collect | ||
data to learn to generate comlpetions. | ||
#### `className: string` (optional) | ||
Class name for the SmartInput wrapper div. | ||
#### `style: React.CSSProperties` (optional) | ||
Standard React CSS style property, applied to SmartInput wrapper div. |
548231
123