diff --git a/src/index.js b/src/index.js index 269326a..377b42a 100644 --- a/src/index.js +++ b/src/index.js @@ -41,6 +41,17 @@ const Liform = props => { ); }; +const EmbeddedLiform = props => { + const schema = compileSchema(props.schema); + + return renderField(schema, + props.fieldName || null, + props.theme || DefaultTheme, + props.prefix || ""); + +} + + Liform.propTypes = { schema: PropTypes.object, onSubmit: PropTypes.func, @@ -60,6 +71,7 @@ export { processSubmitErrors, DefaultTheme, setError, + EmbeddedLiform, buildSyncValidation, - compileSchema, + compileSchema };