import { useState } from "react"; import { H1, H4, H6, P, Button, ButtonLink, ListDropdown, ListSearchDropdown, // LoadingBar, LoadingDotsTyping, LoadingDotsBricks, } from "~/components"; export function SectionComponents () { const [valueListDropdown, setValueListDropdown] = useState(undefined); const [valueListSearchDropdown, setValueListSearchDropdown] = useState(undefined); const testdata = [ { name: 'Wade Cooper' }, { name: 'Arlene Mccoy' }, { name: 'Devon Webb' }, { name: 'Tom Cook' }, { name: 'Tanya Fox' }, { name: 'Hellen Schmidt' }, ] // Progress Bar Usage States, Variables and Functions // const [progress, setProgress] = useState(0); // const loopRef = useRef(null); // const pushProgressBar: ()=>void = useCallback(()=>{ // loopRef.current = setInterval(function timer(){ // setProgress((curr)=>{ // if (curr < 100){ // return curr+10; // }else{ // if(loopRef.current) // clearInterval(loopRef.current); // return curr; // } // })} // , 3000); // }, []); // useEffect(()=>{ // pushProgressBar(); // return ()=>{ // if(loopRef.current) // clearInterval(loopRef.current) // } // },[progress]); return(

Components

Buttons

ButtonLink

Back to /

List Dropdowns

setValueListDropdown(val)} />

Selected Item: {valueListDropdown}

setValueListSearchDropdown(val)} />

Selected Item: {valueListSearchDropdown}

Loading Dots

Loading Bar

Loading Bar is currently Broken and not reusable
{/*
*/}
); };