Colors
Preview:
var(--color-darkblue)
Preview:
var(--color-greyblue)
Preview:
var(--color-blue)
Preview:
var(--color-lightblue)
Preview:
var(--color-green)
Preview:
var(--color-yellow)
Preview:
var(--color-red)
Preview:
var(--color-white)
Checkbox
Preview:
Props:
- checked: true / false
- onChange: function when checkbox value has changes
- ucolor: color when in unchecked status
- ccolor: color when in checked status
// @ts-ignore
reactRender((React, { templateToReact }) => {
const { useState } = React;
const Checkbox = templateToReact('checkbox');
const App = () => {
const [checked, setChecked] = useState(false);
return (
{
console.log('newValue', newValue);
setChecked(newValue);
}}
ucolor='blue'
/>
);
};
return ;
});
Button
Preview:
Props:
- icon: leave blank to not show icon, get value from this cssfont or fontawesomev4
- size: large, medium, small
- colorbg: color background of button
- colortext: color text of button
// @ts-ignore
reactRender((React, { templateToReact }) => {
const Button = templateToReact('button');
const App = () => {
return (
);
};
return ;
});
Heading
Preview:
Props:
- type: type of heading //h1, h2, h3, h4, h5
- color: color of heading
- text: text of heading
- className: class of heading (use if needed)
// @ts-ignore
reactRender((React, { templateToReact }) => {
const Heading = templateToReact('heading');
const App = () => {
return (
);
};
return ;
});
Text
Preview:
Props:
- type: type of text //p
- color: color of text
- text: content
- className: class of text (use if needed)
// @ts-ignore
reactRender((React, { templateToReact }) => {
const Text = templateToReact('text');
const App = () => {
return (
);
};
return ;
});
Input
Preview:
Props:
- value: value of input.
- onChange: function when input value has changes.
- showSubmitButton: show submit button of input (true, false).
- onEntered: function when user enter of click submit button.
// @ts-ignore
reactRender((React, { templateToReact }) => {
const { useState } = React;
const Input = templateToReact('input');
const App = () => {
const [value, setValue] = useState('');
return (
{
setValue(newValue);
}}
showSubmitButton={true}
onEntered={
() => { alert('Form submitted') }
}
/>
{
setValue(newValue);
}}
showSubmitButton={false}
onEntered={
() => { alert('Form submitted') }
}
/>
);
};
return ;
});
Input Copy
Preview:
Props:
- value: value of input.
- onChange: function when input value has changes.
// @ts-ignore
reactRender((React, { templateToReact }) => {
const { useState } = React;
const InputCopy = templateToReact('inputcopy');
const App = () => {
const [value, setValue] = useState('');
return (
{
setValue(newValue);
}}
/>
);
};
return ;
});