Socket
Book a DemoInstallSign in
Socket

@phase2/outline-tabs

Package Overview
Dependencies
Maintainers
10
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-tabs

The Outline Components for the web tabs component

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
10
Created
Source

outline-tab-group

Properties

PropertyAttributeTypeDefaultDescription
activationactivation"auto" | "manual""auto"When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to
manual, the tab will receive focus but will not show until the user presses spacebar or enter.
bodyHTMLElement
indicatorHTMLElement
navHTMLElement
placementplacement"top" | "bottom" | "start" | "end""start"The placement of the tabs.
tabGroupHTMLElement

Methods

MethodTypeDescription
getActiveTab(): OutlineTab | undefined
getAllPanels(): [OutlineTabPanel]
getAllTabs(includeDisabled?: boolean): OutlineTab[]
handleClick(event: MouseEvent): void
handleKeyDown(event: KeyboardEvent): void
handleScrollToEnd(): void
handleScrollToStart(): void
intersectionObserver(): void
preventIndicatorTransition(): void
repositionIndicator(): void
setActiveTab(tab: OutlineTab, options?: { emitEvents?: boolean | undefined; scrollBehavior?: "auto" | "smooth" | undefined; } | undefined): void
setAriaLabels(): void
show(panel: string): voidShows the specified tab panel.
syncIndicator(): void
syncTabsAndPanels(): void

Events

EventTypeDescription
outline-tab-hide{ name: String }Emitted when a tab is hidden.
outline-tab-show{ name: String }Emitted when a tab is shown.

Slots

NameDescription
Used for grouping tab panels in the tab group.
navUsed for grouping tabs in the tab group.

CSS Shadow Parts

PartDescription
active-tab-indicatorAn element that displays the currently selected tab. This is a child of the tabs container.
baseThe component's base wrapper.
bodyThe tab group body where tab panels are slotted in.
navThe tab group navigation container.
tabsThe container that wraps the slotted tabs.

outline-tab-panel

Properties

PropertyAttributeTypeDefaultDescription
activeactivebooleanfalseWhen true, the tab panel will be shown.
namenamestring""The tab panel's name.

Slots

NameDescription
The tab panel's content.

CSS Shadow Parts

PartDescription
baseThe component's base wrapper.

outline-tab

Properties

PropertyAttributeTypeDefaultDescription
activeactivebooleanfalseDraws the tab in an active state.
disableddisabledbooleanfalseDraws the tab in a disabled state.
panelpanelstring""The name of the tab panel the tab will control. The panel must be located in the same tab group.
tabHTMLElement

Methods

MethodTypeDescription
blur(): voidRemoves focus from the tab.
focus(options?: FocusOptions | undefined): voidSets focus to the tab.

Slots

NameDescription
The tab's label.

CSS Shadow Parts

PartDescription
baseThe component's base wrapper.

Keywords

outline components

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.