PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.1.5
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.1.5
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / admin / components / Navs.js

Navs.js in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 3.1.5, at admin/components/Navs.js

37 lines 674 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react'
2
3 const Navs = ({ current, activeNavHandler }) => {
4
5 return (
6 <div className="bs-tab-list">
7 {navs.map((item, i) => (
8 <div key={i} className={`bs-tab ${current === i ? "bs-active-tab" : " "}`} onClick={() => activeNavHandler(i)}>{item.title}</div>
9 ))}
10 </div>
11 )
12 }
13
14 export default Navs
15
16
17 const navs = [
18
19 // {
20 // title: "Blocks",
21 // },
22 {
23 title: "Starter Templates"
24 },
25 {
26 title: "Explore More",
27 },
28 // {
29 // title: "Settings",
30 // },
31 // {
32 // title: "Colors"
33 // },
34 // {
35 // title: "Typography"
36 // }
37 ]