Files
webawesome/docs/components/tab.md

28 lines
544 B
Markdown
Raw Permalink Normal View History

2020-07-15 17:30:37 -04:00
# Tab
[component-header:sl-tab]
```html preview
<sl-tab>Tab</sl-tab>
<sl-tab active>Active</sl-tab>
2020-11-02 08:32:54 -05:00
<sl-tab closable>Closable</sl-tab>
2020-07-15 17:30:37 -04:00
<sl-tab disabled>Disabled</sl-tab>
```
2021-11-04 18:12:47 -04:00
```jsx react
import { SlTab } from '@shoelace-style/shoelace/dist/react';
const App = () => (
<>
<SlTab>Tab</SlTab>
<SlTab active>Active</SlTab>
<SlTab closable>Closable</SlTab>
<SlTab disabled>Disabled</SlTab>
</>
);
```
2021-05-13 09:11:24 -04:00
?> Additional demonstrations can be found in the [tab group examples](/components/tab-group).
2020-07-15 17:30:37 -04:00
[component-metadata:sl-tab]