Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tabs component #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions studio.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"radio-group",
"select",
"switch",
"tabs",
"textarea",
"tooltip",
"validation-feedback"
Expand Down
20 changes: 20 additions & 0 deletions tabs/doc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Tabs

Tabs component

```js script
import { html } from '~/core';
import '~/doc-styles';
import '../simba-tabs.js';
```

```js preview-story
export const main = () => html`
<simba-tabs>
<button slot="tab">Info</button>
<p slot="panel">Info page with lots of information about us.</p>
<button slot="tab">Work</button>
<p slot="panel">Work page that showcases our work.</p>
</simba-tabs>
`;
```
1 change: 1 addition & 0 deletions tabs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/SimbaTabs.js';
1 change: 1 addition & 0 deletions tabs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions tabs/simba-tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { SimbaTabs } from './src/SimbaTabs.js';

customElements.define('simba-tabs', SimbaTabs);
3 changes: 3 additions & 0 deletions tabs/src/SimbaTabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { LionTabs } from '@lion/tabs';

export class SimbaTabs extends LionTabs {}