ClassiJSYou already know it. Star on GitHub

Examples

Getting Started
OverviewInstallationGetting StartedWork List
Components
Buttons
Basic ButtonsToggle ButtonsButton StatesButton IconsMenu ButtonsMenu Bottom ButtonsSplit ButtonsSplit Bottom ButtonsLeft Text ButtonsRight Text ButtonsLink ButtonsButton with CountSegmented ButtonsVertical Segmented Buttons
Tabs
Basic TabsPlain TabsFramed TabsIcon TabsAdvanced TabsHeader TabsRemote Content TabsLazy TabsReorderable TabsOverflow TabsTab Positions
Menus and Toolbars
Basic ToolbarDocked ToolbarsBreadcrumb ToolbarToolbar OverflowToolbar MenusStatus Bar
Panels
Basic PanelFramed PanelHeader Positioning
Feedback and Overlays
Anchored TooltipsPointer TooltipsRich TooltipsClosable TooltipsPopoversLoading MaskProgress BarWindowsMessage BoxesToast Notifications
Form Fields
Forms and FieldsetsField GroupsCombo BoxTag FieldNumber FieldDate/Month PickerField TypesCheckboxRadioText FieldText AreaColor FieldSelect Field
Advanced Forms
Multi-selectSlider FieldRating FieldForm ValidationRepeatable FieldsUpload ProgressForm Examples
Trees
Basic TreesJSON Tree
Code Block
Basic Code BlockTitle and Line NumbersWrapped CodeEditable Code
Navigation
Thumbnail View

No results found.

Documentation

Getting Started

These examples use the current Astro adapter. Import ClassiJS components in any Astro file, use props for behavior and slots for content.

Build a form

Native form attributes pass through to the control. This includesname, required and type. Form controls keep their browser submission behavior.

src/pages/profile.astro
---
import { Button, Checkbox, Panel, TextField } from 'classijs';
---

<Panel title="Profile" padded>
  <form method="post">
    <TextField label="Name" name="name" required />
    <TextField label="Email" name="email" type="email" required />
    <Checkbox name="updates">Email me product updates</Checkbox>
    <Button type="submit">Save changes</Button>
  </form>
</Panel>

Compose interactive components

Components that need browser behavior initialize it themselves. Tabs, menus, pickers and collapsible panels do not need a separate setup script.

---
import { Tab, TabPanel, Tabs } from 'classijs';
---

<Tabs id="account" label="Account settings">
  <Fragment slot="tabs">
    <Tab id="profile" selected>Profile</Tab>
    <Tab id="security">Security</Tab>
  </Fragment>

  <TabPanel for="profile" selected>
    Profile settings
  </TabPanel>
  <TabPanel for="security">
    Security settings
  </TabPanel>
</Tabs>

Connect related components

A Tab and its TabPanel share the same identifier through id and for. Mark the initial tab and panel as selected.

Use native attributes

Pass disabled, href, aria-label and other supported HTML attributes directly to a component. Icon-only controls need an accessible name. Keyboard behavior is included in the component.

View the work list »

Browse components »