Skip to content

CssClass

CSS classes used by the @mnaoumov/obsidian-lib library.

Import:

import type { CssClass } from '@mnaoumov/obsidian-lib/css-class';

Signature:

export enum CssClass

Members:

Member Value Description
AlertModal 'alert-modal' A CSS class for the alert modal.
BugReportPreview 'bug-report-preview' A CSS class for the preview of the bug-report diagnostics review modal.
BugReportReviewModal 'bug-report-review-modal' A CSS class for the bug-report diagnostics review modal.
CancelButton 'cancel-button' A CSS class for the cancel button.
CheckboxComponent 'checkbox-component' A CSS class for the checkbox component.
ClickableIcon 'clickable-icon' Obsidian’s class for a clickable icon button, giving it the hover background and icon-color treatment.
Code 'code' Obsidian’s class for an inline code element (used by appendCodeBlock).
CodeBlockBuilderGroup 'code-block-builder-group' A CSS class for a collapsible field group of the code block builder modal.
CodeBlockBuilderGroupBody 'code-block-builder-group-body' A CSS class for the field container of a collapsible group of the code block builder modal.
CodeBlockBuilderModal 'code-block-builder-modal' A CSS class for the code block builder modal.
CodeBlockBuilderOutput 'code-block-builder-output' A CSS class for the output row of the code block builder modal.
CodeBlockBuilderPreview 'code-block-builder-preview' A CSS class for the live preview container of the code block builder modal.
CodeHighlighterComponent 'code-highlighter-component' A CSS class for the code highlighter component.
ConfirmModal 'confirm-modal' A CSS class for the confirm modal.
CopyTextManuallyModal 'copy-text-manually-modal' A CSS class for the copy-text-manually modal.
CopyTextManuallyText 'copy-text-manually-text' A CSS class for the text area of the copy-text-manually modal.
DateComponent 'date-component' A CSS class for the date component.
DateTimeComponent 'datetime-component' A CSS class for the date and time component.
EmailComponent 'email-component' A CSS class for the email component.
FileComponent 'file-component' A CSS class for the file component.
FilePathComponent 'file-path-component' A CSS class for the file path component.
FoldableMarkdown 'foldable-markdown' A CSS class for rendered markdown whose headings and lists registerFoldHandlers made foldable.
FolderListComponent 'folder-list-component' A CSS class for the folder list component.
HotkeyComponent 'hotkey-component' A CSS class for the hotkey component.
InlineToken 'inline-token' A CSS class for the element an inline token renders into, in Reading view and in Live Preview.
IsActive 'is-active' Obsidian’s class for a control that is currently ON, reused so a pressed command button matches the app’s own toggled controls.
IsCollapsed 'is-collapsed' Obsidian’s class for a collapsed element, reused for a collapsed group of the code block builder modal.
IsPlaceholder 'is-placeholder' A CSS class for the placeholder.
LibraryName 'obsidian-lib' A CSS class for the library name, set on every element the library builds.
ListComponent 'list-component' A CSS class for the reorderable list component.
MarkdownRendered 'markdown-rendered' Obsidian’s class marking rendered-markdown content (used by appendCodeBlock).
MinimizableModal 'minimizable-modal' A CSS class for the minimizable modal.
MinimizeButton 'minimize-button' A CSS class for the minimize button of the minimizable modal.
MinimizedModalBar 'minimized-modal-bar' A CSS class for the minimized bar of the minimizable modal.
MinimizedModalBarAttention 'minimized-modal-bar-attention' A CSS class for the one-shot attention flash of the minimized bar, played when the user attempts a blocked action (a keystroke, right-click, or opening another modal) while the modal is minimized.
MinimizedModalBarTitle 'minimized-modal-bar-title' A CSS class for the title of the minimized bar of the minimizable modal.
ModalCommand 'modal-command' A CSS class for one button in a modal’s command strip.
ModalCommandControl 'modal-command-control' A CSS class for a control injected into an instruction’s purpose text — a checkbox, a dropdown. Obsidian’s own instruction bar never contains one, so nothing upstream separates it from the label it belongs to.
ModalCommandHotkey 'modal-command-hotkey' A CSS class for the hotkey hint inside a modal command button.
ModalCommands 'modal-commands' A CSS class for the strip of commands a modal renders along its bottom edge.
ModalHeaderButton 'modal-header-button' Obsidian’s class for a modal header button (e.g. the modal close button), reused to match the native modal close button’s box and hover.
MonthComponent 'month-component' A CSS class for the month component.
MultipleDropdownComponent 'multiple-dropdown-component' A CSS class for the multiple dropdown component.
MultipleEmailComponent 'multiple-email-component' A CSS class for the multiple email component.
MultipleFileComponent 'multiple-file-component' A CSS class for the multiple file component.
MultipleTextComponent 'multiple-text-component' A CSS class for the multiple text component.
NumberComponent 'number-component' A CSS class for the number component.
OkButton 'ok-button' A CSS class for the ok button.
OverlayValidator 'overlay-validator' A CSS class for the overlay validator.
PasswordComponent 'password-component' A CSS class for the password component.
PluginConflictBanner 'plugin-conflict-banner' A CSS class for the banner naming a plugin this one refuses, or warns about, running beside.
PluginDependencyBanner 'plugin-dependency-banner' A CSS class for the banner a blocked plugin renders in place of its settings, naming the mandatory dependency it is waiting for.
PluginNoticeCloseButton 'plugin-notice-close-button' A CSS class for the close button of a notice that requires close confirmation.
PluginNoticeContent 'plugin-notice-content' A CSS class for the container wrapping a notice’s content, used to keep the notice open when an interactive element inside it is clicked.
PluginNoticeName 'plugin-notice-name' A CSS class for the plugin name shown as the prefix of a notice.
PluginNoticeRequiresExplicitClose 'plugin-notice-requires-explicit-close' A CSS class applied to the notice element of a notice that requires an explicit close, used to make its whole area non-dismissible.
PluginSettingsTab 'plugin-settings-tab' A CSS class for the plugin settings tab.
PluginSuggestionBanner 'plugin-suggestion-banner' A CSS class for the banner a plugin-suggestion renders into a settings tab.
PluginSuggestionNoticeButtons 'plugin-suggestion-notice-buttons' A CSS class for the row of buttons in a plugin-suggestion notice, which spaces the action button apart from the decline button.
Popover 'popover' A CSS class for the popover.
PromptInstruction 'prompt-instruction' Obsidian’s class for one row of its modal instruction bar, reused so a self-created bar inherits the app’s own instruction styling.
PromptInstructionCommand 'prompt-instruction-command' Obsidian’s class for the key-hint half of one instruction row. It is the only thing carrying that hint’s bold weight and the margin-inline-end that separates it from the purpose text, so a self-created bar that omits it renders alt 1Keep the old title welded together. Reused rather than re-implemented: the app’s rule for it is unscoped, so it reaches a plain Modal too, and sharing the class keeps the self-created bar and setInstructions from ever drifting apart.
PromptInstructions 'prompt-instructions' Obsidian’s class for its modal instruction bar, reused so a self-created bar inherits the app’s own instruction styling.
PromptMaskedInput 'prompt-masked-input' A CSS class for the row holding a masked prompt input and its show/hide toggle.
PromptModal 'prompt-modal' A CSS class for the prompt modal.
RecoveryCopiesButton 'recovery-copies-button' A CSS class for the button of the settings management row that lists the recovery copies of data.json.
RestoreButton 'restore-button' A CSS class for the restore button of the minimized modal bar.
SelectItemModal 'select-item-modal' A CSS class for the select item modal.
SelectOptionModal 'select-option-modal' A CSS class for the select option modal.
SettingComponentWrapper 'setting-component-wrapper' A CSS class for the setting component wrapper.
SettingsRecoveryCopiesModal 'settings-recovery-copies-modal' A CSS class for the modal that lists the recovery copies of a plugin’s data.json.
SettingsRecoveryCopy 'settings-recovery-copy' A CSS class for one recovery copy in the recovery copies modal.
SettingsRecoveryCopyPreview 'settings-recovery-copy-preview' A CSS class for the preview of a recovery copy’s raw text.
SettingsTabs 'settings-tabs' A CSS class for the settings tabs.
TagListComponent 'tag-list-component' A CSS class for the tag list component.
TagSuggestion 'tag-suggestion' A CSS class for a tag suggestion of an input suggest.
TelephoneComponent 'telephone-component' A CSS class for the telephone component.
TextBox 'text-box' A CSS class for the text box.
TimeComponent 'time-component' A CSS class for the time component.
Tooltip 'tooltip' A CSS class for the tooltip.
TooltipArrow 'tooltip-arrow' A CSS class for the tooltip arrow.
TooltipValidator 'tooltip-validator' A CSS class for the tooltip validator.
TriStateCheckboxComponent 'tri-state-checkbox-component' A CSS class for the tri-state checkbox component.
TypedDropdownComponent 'typed-dropdown-component' A CSS class for the typed dropdown component.
TypedMultipleDropdownComponent 'typed-multiple-dropdown-component' A CSS class for the typed multiple dropdown component.
UndoButton 'undo-button' A CSS class for the Undo button of a notice.
Untouched 'untouched' A CSS class for an input the user has not interacted with yet, used to defer the invalid styling until the input is touched.
UrlComponent 'url-component' A CSS class for the url component.
WeekComponent 'week-component' A CSS class for the week component.

Links to this page: