diff --git a/packages/bbui/src/Tabs/Tab.svelte b/packages/bbui/src/Tabs/Tab.svelte new file mode 100644 index 0000000000..46d8f175c5 --- /dev/null +++ b/packages/bbui/src/Tabs/Tab.svelte @@ -0,0 +1,22 @@ + + +
$selected = title } class:is-selected={$selected === title} class="spectrum-Tabs-item" tabindex="0"> + {#if icon} + + {/if} + {title} +
+{#if $selected === title} + + + +{/if} \ No newline at end of file diff --git a/packages/bbui/src/Tabs/Tabs.svelte b/packages/bbui/src/Tabs/Tabs.svelte index 7a50b236cf..56f3601a98 100644 --- a/packages/bbui/src/Tabs/Tabs.svelte +++ b/packages/bbui/src/Tabs/Tabs.svelte @@ -1,20 +1,23 @@
-
- Tab 1 -
-
- Tab 2 -
-
- Tab 3 -
-
- Tab 4 -
-
-
\ No newline at end of file + + + +
+ + \ No newline at end of file diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 56c2c955a0..47206afa08 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -37,6 +37,8 @@ export { default as Multiselect } from "./Form/Multiselect.svelte" export { default as Slider } from "./Form/Slider.svelte" export { default as Context } from "./context" export { default as Table } from "./Table/Table.svelte" +export { default as Tabs } from "./Tabs/Tabs.svelte" +export { default as Tab } from "./Tabs/Tab.svelte" export { default as Divider } from "./Divider/Divider.svelte" // Typography diff --git a/packages/builder/src/pages/builder/index.svelte b/packages/builder/src/pages/builder/index.svelte index 89a5e8cb25..b477359f87 100644 --- a/packages/builder/src/pages/builder/index.svelte +++ b/packages/builder/src/pages/builder/index.svelte @@ -3,7 +3,7 @@ import AppList from "components/start/AppList.svelte" import { get } from "builderStore/api" import CreateAppModal from "components/start/CreateAppModal.svelte" - import { Button, Heading, Modal, Spacer, Menu, MenuSection, MenuItem } from "@budibase/bbui" + import { Button, Heading, Modal, Spacer, Tabs, Tab } from "@budibase/bbui" import TemplateList from "components/start/TemplateList.svelte" import analytics from "analytics" import Banner from "/assets/orange-landscape.png"