UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

13 lines 224 B
export function serializeValue(value) { if (value == null) { return ''; } if (typeof value === 'string') { return value; } try { return JSON.stringify(value); } catch { return String(value); } }