Rust UI component that displays a set of layered sections of content, known as tab pages, that are displayed one at a time.

utils

Installation

Usage

use crate::components::ui::tabs::{
    Tabs,
    TabsContent,
    TabsTrigger,
};
<Tabs>
    <TabsTrigger checked=true name="tabs">"Tab 1"</TabsTrigger>
    <TabsTrigger name="tabs">"Tab 2"</TabsTrigger>
    <TabsContent>"Content for Tab 1"</TabsContent>
    <TabsContent>"Content for Tab 2"</TabsContent>
</Tabs>