If you need to reach us, please visit us at 1234 Main St., Anytown, USA.
),
},
];
const renderData = (text: string) => (
{text}
);
const tabsList = [
{
id: 'plugins',
label: 'Plugins',
icon: 'fc-data',
content: renderData("Here's where you can find all the plugins you need. Enjoy!"),
},
{
id: 'addons',
label: 'Addons',
icon: 'fc-gears-2',
content: renderData("Here's where you can find all the addons you need. Enjoy!"),
},
{
id: 'shelf',
label: 'Shelf',
icon: 'fc-workbook-lock',
content: renderData("Here's where you can find all the private documents you need. Enjoy!"),
},
];
function Example() {
/**
* Theming is supported "out of the box". To apply a theme wrap your addOn in a div and assign the class that
* matched the desired theme:
* - color_analysis for Analysis styled qomponents (green)
* - color_topic for Topic styled qomponents (blue)
* - DataLab for DataLab styled qomponents (orange)
*/
const [theme, setTheme] = React.useState('color_analysis');
/**
* qomponents also support tw-dark. To render qomponents using tw-dark wrap your addOn in a div and assign the
* class "tw-dark" for dark-mode or "tw-light" for light mode.
*/
const [mode, setMode] = React.useState('tw-light');
const [btGroupType, setBtGroupType] = React.useState('left');
/**
* This example uses controlled inputs (https://blog.logrocket.com/controlled-vs-uncontrolled-components-in-react/)
*/
const [textFieldValue, setTextFieldValue] = React.useState('');
const [textAreaValue, setTextAreaValue] = React.useState('');
const [selectValue, setSelectValue] = React.useState();
const [complexSelectedValue, setComplexSelectedValue] = React.useState();
const [alertDisplay, setAlertDisplay] = React.useState('success');
const [easeOfUse, setEaseOfUse] = React.useState(false);
const [lookAndFeel, setLookAndFeel] = React.useState(false);
const [speed, setSpeed] = React.useState(false);
const [help, setHelp] = React.useState('phone');
const [openDropdown, setOpenDropdown] = React.useState('');
const [openPopver, setOpenPopover] = React.useState('');
const [modalOpen, setModalOpen] = React.useState(false);
const [modalTitle, setModalTitle] = React.useState('Modal Title');
const [activeTab, setActiveTab] = React.useState('plugins');
const [collapseVisible, setCollapseVisible] = React.useState(false);
const [inputGroupValue, setInputGroupValue] = React.useState('');
const [sliderValue, setSliderValue] = React.useState(50);
return (
// outer-wrapper div that assigns the mode (tw-dark or light) as well as the theme