finansavisen-components
v1.9.9
Published
Custom elements for finansavisen
Downloads
762
Readme
Finansavisen Custom Elements
Custom elements library for Finansavisen,created with vue 3.
Installation
npm i finansavisen-components
React Example
import { useState } from "react";
import { Calculator, Keyratios, Currencies, Orderbook } from "finansavisen-components";
import "./App.css";
customElements.define("finansavisen-keyratios", Keyratios);
customElements.define("finansavisen-currency-list", Currencies);
customElements.define("finansavisen-orderbook", Orderbook);
customElements.define("finansavisen-calculator", Calculator);
function App() {
const [count, setCount] = useState(0);
return (
<div className="App">
<finansavisen-calculator token="your-token-here"></finansavisen-calculator>
<finansavisen-currencies
insrefs="4606795,4615927,4615929,4615930,4615931,4615932,4606793,4615889,4606797,4606801"
myList="4615929,4615927"
token="your-token-here"
></finansavisen-currencies>
</div>
);
}
export default App;