Türkçe
OzdenUI
Plain JavaScript UI components built with basic.js. Every component with a live example and its code.
Forms & Inputs
- FilePicker: Drop zone and file dialog that lists the chosen files with image previews and sizes.
- TagInput: A field of chips for tags, keywords or e-mails, with suggestions, validation and paste splitting.
- Stepper: Number stepper with decimals, a unit, typed editing and hold-to-repeat buttons. A line around the buttons and a round look (ozden).
- SliderField: A slider in the shape of a field: the label at the left, the value at the right, step dots, drag, click to jump and typed editing. The ozden look: a cyan fill with a white knob that never cuts a text.
- LabelEditor: An object based editor: add labels, change their properties in a side panel, save the styles with a name and apply them to other labels.
- PropertyPanel: A design tool style property inspector at the right side, built from a JSON: numbers, selects, segmented buttons, toggles and constraints, with change events.
- RichTextEditor: A simple rich text editor with a toolbar (bold, headings, lists, quote, link, undo), cleaned HTML output and a character limit.
- CodeEditor: A text editor for code: line numbers, colors for Python, JavaScript, JSON, HTML, CSS, SQL and Bash, indent keys, and a file of 100000 lines stays fast. Light and dark themes.
- SortableList: A list whose order is changed by drag and drop, the keyboard or up / down buttons, with locked rows.
- TextField: Labeled text field with an icon, a unit, hints and validation; the base of EmailField, PasswordField and the other fields.
- EmailField: A TextField that checks e-mail addresses.
- PasswordField: Password field with a show and hide button.
- NumberField: A TextField that accepts only numbers.
- PhoneField: Phone number field with a country code; one example opens a country list.
- CurrencyField: Money field that formats the amount and shows its currency.
- UrlField: Web address field with a protocol selector.
- TextAreaField: Multi-line text field in the TextField style, with a character counter.
- SearchInput: Search field with a search icon and a clear button.
- Slider: Slider for choosing a value in a range, on a step. Looks: round (a thin track and a round white knob: the look of new pages), roundDark for a dark page, and classic (inspired by Material 3).
- StepBar: The steps of a job in a row: a cart, an address, a payment. A step that is behind has a check mark and can be clicked to go back, the step of now is filled. For a history of what happened: TimeLine. Light, dark and minimal looks.
- RangeSlider: A range of values on a thin bar: two knobs and the part between them: a price, the hours of a day. A step, the smallest distance, its own text in the bubble, the keyboard. Light and dark looks.
- NumericKeyboard: Number keys on the screen for a PIN, an amount or a kiosk: two layouts, a hidden PIN, the keyboard of the computer too. The new version of UINumericKeyboard.
Selection
- ItemList: A list of items with an icon, a title and a description (or your own rows): vertical, horizontal or grid, single or multiple selection, section titles, search and keyboard; a picture gallery; a pressed flash and animated add / remove.
- Filters: A filter menu: a button and a panel with a search field, groups of check boxes, the number of the selected options and Clear all. In the page or as a popup.
- SelectBox: Dropdown select for single or multiple selection, with select all and clear.
- FullScreenSelect: A select field whose list opens on the whole screen, with a search box: for phones and long lists. The new version of UISelectText.
- DatePicker: Date picker as a popup or an always visible calendar, with a month and year view.
- TimePicker: Time picker with scrollable hour and minute columns, as a popup or inline.
- ColorPicker: Color picker: a field that opens a palette, or an always visible palette.
- PeriodBar: A month switcher: this month and the months before it in a white capsule, with round buttons and sliding months. For a mobile app with a 600 px design (page.fit(600, 800)): on a normal page its sizes are too big.
- CheckBox: Check box with a label, drawn with code; classic, modern, dark, minimal and minimalDark style packages.
- RadioButton: Radio buttons that work in groups, with keyboard support and style packages.
- Toggle: On and off switch for light and dark pages. Many looks: ozden (the default), light and dark (the look of the kit), classic, the shapes float, round, slim, outline and square, and tick, badge and label with a check, a cross or a text.
- TinySelect: Small inline select that fits into a sentence: Theme: Supernova.
Buttons & Menus
- ActionButton: Round floating action button in the corner of the screen; it opens a menu of actions. The new version of UIActionButton.
- ContextMenu: A simple menu that opens at the mouse point, with text or icon items (SVG icons take the text color) and submenus.
- MenuBar: The row of menus at the top of a window: File, Edit, View. Shortcuts, check marks, submenus and the arrow keys. Light and dark themes.
- ToolBar: The row of small buttons of a window, under its menus: icons with a hint, lines between the groups, buttons that stay pressed, a button that opens a menu. What does not fit goes into a "..." menu. Shortcuts and the arrow keys. Light and dark themes.
- SmartButton: The default button: an icon and a text (or one of them; an empty text makes an icon button). The look in three steps: styleName (the template: ozden ... ozden4, pill, outlined, ozdenDark-4Dark, minimal, minimalDark), tone (white, cyan, orange, yellow, green, blue, and blueDark... for a dark page) and style (your own colors: the color and the color under the mouse; pressed, it gets darker by itself). A waiting clock or dots while a job runs, and a two-click ask with a bubble.
- HoldToConfirmButton: A button that runs only after it is pressed and held; for risky actions like delete.
Navigation
- Tabs: Tab bar with underline and pill variants, counts, badges, closable tabs, a vertical mode and optional panels.
- TreeView: A tree of nested items with lazy branches, keyboard and type-ahead: a file explorer, a category tree, a menu or design tool layers.
- Breadcrumbs: Shows where the current page is in a hierarchy: Home / Products / Laptops.
- PageControl: Sliding or fading pages for wizards, carousels and app screens, with swipe, dots, arrows and auto play.
- SearchResults: The result list that opens under a search input, like an autocomplete or a command palette.
- ActionTabBar: A bottom tab bar with a big round + button for the main action of the app; a line slides under the selected tab. For a mobile app with a 600 px design (page.fit(600, 800)): on a normal page its sizes are too big.
- BottomBar: Mobile app bottom bar built from a JSON list of buttons, with badges; the name of the selected item next to it, over it for a moment or hidden, a color per item, keyboard ready.
- AppBar: The top bar of a tab page of a mobile app: a title in the middle or at the left, a back and a menu button. For a mobile app with a 600 px design (page.fit(600, 800)): on a normal page its sizes are too big.
- PageHeader: The header of a page that slides in over the tabs of a mobile app: a small back link over a big title. For a mobile app with a 600 px design (page.fit(600, 800)): on a normal page its sizes are too big.
- LeftMenu: Icon side menu that opens on hover, or with a tap on touch screens. Style packages: dark (default) and light (for a light page).
Data & Charts
- GraphBox: Charts with no library: one file draws them as SVG. Line, area, bar, pie, doughnut, radar, scatter and bubble, with a tooltip, a legend, a table and its themes (light, dark, minimal).
- Canvas: A place to draw on: lines, rectangles, circles, polygons, texts and pictures, each with a key; a click finds the shape, a shape can be dragged, free drawing with a pen, the drawing as a picture. Light and dark looks.
- Gauge: A value drawn on an arc: a full ring or a half arc.
- MiniGraphBox: Small KPI box with a title, a value, an icon and a live bar graph.
- SparkLineBox: KPI box with a line graph, a trend badge, min/max dots and a hover tooltip.
- TimeLine: A vertical time line of what happened, and when: a dot for every item and a line between the dots; it grows with new items. For the steps of a job and the step of now: StepBar. Light, dark and minimal looks.
- JsonView: A value of JSON as a tree: the answer of a server, a settings file. Keys and values in colors, the path of a row, right click to copy. A list of a million items opens at once. A text that is not JSON shows its error. Light and dark themes.
- JsonEditor: A list or an object of JSON written in a table: add, sort and drag rows; a switch, a color, a picture or a choice in a cell; a list in a cell opens as a table of its own. Paste from a spreadsheet, a JSON view, its own undo. In the page, or in a window with Apply. Light, dark and minimal themes.
- MarkdownView: A text written in Markdown, drawn on the page: a report, the answer of an AI. Headings, lists, tables, pictures, code with colors and a button that copies it. A text is never read as HTML. A text that comes piece by piece. Light and dark themes.
- ChatView: A conversation with an AI: the messages of the user in bubbles, the answers drawn as Markdown, an answer that comes piece by piece and three dots while it is waited for, a field that grows, with Send and Stop. Light, dark and minimal themes.
- LogView: The output of a program: colored lines with their time and level, following the last line. Fast output is drawn in batches. Light and dark themes.
- DataTable: A table for lists up to about 2,000 rows: sorting, search, keyboard selection, your own cells and row updates by id. For more rows: SmartTable.
- SmartTable: Virtual-scroll table for millions of rows, with filtering, sorting, custom cells and editing. Style packages: light (default; its old name classic) and dark, the looks of DataTable, and green (the old look). A cut text shows all of it in a bubble.
- ScrollingText: A one line text that slides to show its end when it does not fit: always, or only under the mouse.
- TinyTable: A light table for short lists: a colored title row, one line rows (a long text slides under the mouse), a soft color under the mouse; scrolling rows. The new version of TinyTable (M1).
Overlays & Feedback
- ProgressBar: Horizontal progress bar with a title and a value text; determinate or indeterminate. Two parts (70 + 5) in their own colors, moving stripes, limit lines and a dark track.
- Toast: Short messages that come and go: success, error, loading, and actions like Undo.
- StatusBar: The thin bar at the bottom of a window: a short message that can go away by itself, a turning circle for a job, small parts that can be clicked. Light and dark themes.
- Dialog: A dialog over the page with fields and buttons: a button that asks again, a waiting button, keyboard; Dialog.confirm, alert and prompt. In development.
- Notice: A short message in the middle of the screen over a soft cover: five types, an icon, a second line; it goes by itself. The new version of notice (M1).
- SidePanel: A drawer that slides in from a side of the screen, or of a box like an app column, over the page.
- LoadingScreen: Full cover splash and loading screen with an icon, a title, a spinner and progress.
- LineProgressBar: A progress bar drawn with vertical lines: thin, or thick with round ends; the value in a bubble with an arrow.
- Tooltip: A hint bubble over an object: it follows the mouse or stays at the object, with an optional bordered arrow, always inside the screen; your own content in it, or a popover that stays and can be clicked.
- Badge: Notification badge on an object: a dot or a number; 0 and 1 can be shown as numbers, and the dot and the number can have their own look; style packages ozden (the default), light and dark.
Pages & Views
- Accordion: Sections that fold: a title row and the objects under it, one or more open, with a note, an icon and the keyboard. A closed section keeps its objects. Light and dark themes.
- GridGroup: A group whose objects stand in columns and rows: a form of titles and fields, the keys of a calculator, tiles. Equal columns, px, parts of the room, an object over more than one cell.
- ScrollArea: A box whose content scrolls, in one call: the page of a window, or a list between two bars (in a group it takes the room the other objects leave). The scroll bar of the kit; light, dark and minimal.
- Splitter: Two areas with a line between them: a drag changes their sizes, side by side or one under the other. Keyboard, limits, sizes that follow the window. Light and dark themes.
- ImageView: A place to look at a picture or a plot: zoom with the wheel or two fingers, move with a drag, a small toolbar. A plot that is drawn again does not blink. Light and dark themes.
- WebView: An iframe box with a loading spinner, errors, messages, scaled previews and a toolbar. The previews on this site use it.
- LoginPage: A ready login and sign up page with e-mail, password and social buttons.
- SettingsRow: A row of a settings page: a title, a small text that fades in and out, and a control (a switch, a stepper) or an arrow at the right; bands between the groups. For a mobile app with a 600 px design (page.fit(600, 800)): on a normal page its sizes are too big.
- Form: A page-wide form that checks its fields: the send button waits until every required field is valid; a message over the form after sending.
Effects & Styles
- UIEffects: Press, hover and attention effects for any basic.js object: ripple, lift, tilt, spotlight and more.
- UI Standards: Design tokens and themes: colors, font sizes, corner radius and a light, dark or automatic theme.
- TapEffect: A soft circle where the screen is tapped, over everything; it never catches the tap. TapEffect.start() / stop(), also on a page fitted with page.fit().
- MinimalAccent: The minimal theme in a color of the page: MinimalAccent.addPackages("minimalBlue", "#2A78D6") gives every minimal component a light and a dark package in that color (an on toggle, a checked box, the selected tab, the main button). The lines and the texts stay as they are.
github.com/bug7a/js-components