-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS not loading in FormViewer #24
Comments
@minh-tranchi please attach the JSON of the form and the definitions of your custom components needed to run the example. Here is an example of how the container for the components from the demo is defined, maybe this will help: import styled from '@emotion/styled'
import {containerStyles, define, node} from '@react-form-builder/core'
const RsContainer = styled.div`
display: flex;
`
const {flexDirection, gap} = containerStyles
export const rsContainer = define(RsContainer, 'RsContainer')
.name('Container')
.kind('container')
.props({
children: node.hinted('Component children')
})
.css({
...containerStyles,
flexDirection: flexDirection.default('column'),
gap: gap.default('10px')
}) |
Thanks mate, your given sample handle my problem quite well. I forgot to define using containerStyles props |
I'm having a problem when using the HTML of the Form Viewer for sending Email |
Unfortunately not. |
This is my form with the custom container which has been modified to show flexDirection is row
But in the FormViewer, It's still show the container in column direction
I've check the JSON data for the form and it do have the css property for it, is there any way to fix this?
The text was updated successfully, but these errors were encountered: