Miscellaneous Components
Utility and general-purpose components
General-purpose and utility components.
Prerequisites
- Complete the installation
- Add the dependency to your app's
package.json
{
"dependencies": {
"@tetherto/mdk-react-devkit": "*",
"@tetherto/mdk-react-adapter": "*",
"@tetherto/mdk-ui-foundation": "*"
}
}Run npm install from the mdk/ui workspace root after your app is under apps/ so npm links workspace packages.
- Import styles:
import '@tetherto/mdk-react-devkit/styles.css'
Components
@tetherto/mdk-react-devkit
Import the public APIs on this page from @tetherto/mdk-react-devkit.
SparePartDetails
Presentational key-value list of a spare part's attributes (code, model, site, serial number, MAC). Renders data only; used inside the move/confirm spare-part dialogs but safe to compose standalone.
advanced
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
sparePart | SparePartDetailsRecord | undefined | - | - |