fakiolinho / react-loading

React component for loading animations

Home Page:https://codesandbox.io/s/mqx0ql55qp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i display this component inline

khanhlu2013 opened this issue · comments

          <span>
            Some Text Here
            <div style={{ display: "inline" }}>
              <ReactLoading color="#c1c1c1" height={"5%"} width={"5%"} />
            </div>
          </span>

If you do sth like this:

<ReactLoading
  className="preloader"
  color="#c1c1c1"
  height={"5%"}
  width={"5%"}
/>

and in your css:

.preloader {
  display: inline-block;
}

you are good to go i suppose 😃