### UIkit CDN Integration Example Source: https://getuikit.com/v2/docs/documentation_get-started Shows how to link to UIkit's CSS and JavaScript files using the Cloudflare CDN. This method is convenient for quickly integrating UIkit without downloading the files. ```html ``` -------------------------------- ### UIkit File Structure Example Source: https://getuikit.com/v2/docs/documentation_get-started This snippet illustrates the directory structure of a downloaded UIkit project, showing the location of CSS, JavaScript, and font files. It includes different styles and minified versions. ```text /css uikit.css uikit.min.css uikit.gradient.css uikit.gradient.min.css uikit.almost-flat.css uikit.almost-flat.min.css /components /fonts fontawesome-webfont.ttf fontawesome-webfont.woff fontawesome-webfont.woff2 FontAwesome.otf /js uikit.js uikit.min.js /components /core ``` -------------------------------- ### List of UIkit Documentation Sections Source: https://getuikit.com/v2/docs/customizer A list of links to different sections of UIkit documentation, including Getting Started, Core components, Customizer, and Tutorials. ```html * Get Started * Core * Customizer * Showcase * Tutorials * UIkit 3 ``` -------------------------------- ### Basic HTML Page Markup with UIkit Source: https://getuikit.com/v2/docs/documentation_get-started Demonstrates how to include the UIkit CSS and JavaScript files in the header of an HTML5 document. jQuery is a required dependency for UIkit. ```html ``` -------------------------------- ### Basic List HTML Example Source: https://getuikit.com/v2/docs/customizer A simple unordered list example in HTML, showcasing list items as defined by UIkit. ```html * List item 1 * List item 2 * List item 3 ``` -------------------------------- ### Description List Example Source: https://getuikit.com/v2/docs/customizer Demonstrates a description list in HTML, where terms are followed by their descriptions, suitable for defining terms or specifications. ```html Description lists Description text. ``` -------------------------------- ### Pagination Component HTML Example Source: https://getuikit.com/v2/docs/customizer Demonstrates the structure of a UIkit pagination component, including navigation controls for moving between pages. ```html * __ * 1 * 2 * 3 * 4 * ... * 20 * __ ``` -------------------------------- ### UIkit Modal Markup Examples Source: https://getuikit.com/v2/docs/modal Demonstrates the HTML structure for creating and triggering UIkit modal dialogs. Includes examples for anchor and button triggers, as well as the modal's internal structure with close button. ```html ...
...
``` -------------------------------- ### Basic HTML Structure Example Source: https://getuikit.com/v2/docs/customizer A simple HTML div element with a custom class, demonstrating basic structure for content styling within UIkit. ```html
...
``` -------------------------------- ### Nested List Structure Example Source: https://getuikit.com/v2/docs/customizer Demonstrates a nested list structure, showing how to create hierarchical lists with multiple levels of indentation. ```html * Active * Active * Active * Item ``` -------------------------------- ### Badge Component HTML Example Source: https://getuikit.com/v2/docs/customizer Illustrates the usage of the UIkit Badge component with different contextual states (Success, Warning, Danger) to visually highlight counts or statuses. ```html Badge 1 Success 4 Warning 3 Danger 4 ``` -------------------------------- ### Scrollspy Basic Markup Examples Source: https://getuikit.com/v2/docs/scrollspy Demonstrates how to apply the data-uk-scrollspy attribute to individual elements with different options for class application, repetition, and delay. These examples are useful for applying animations when elements first enter the viewport. ```html
...
...
...
``` -------------------------------- ### List with Detail and Author Info Source: https://getuikit.com/v2/docs/customizer Example of a list item structure that includes a date and author information, commonly used for blog posts or news articles. ```html * #### Author May 2, 2090 at 1:55 pm Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna. ``` -------------------------------- ### Progress Bar Component HTML Example Source: https://getuikit.com/v2/docs/customizer Demonstrates the UIkit progress bar component with different percentage values, indicating task completion or loading status. ```html 55% 55% 55% 55% ``` -------------------------------- ### Dropdown Menu Structure Source: https://getuikit.com/v2/docs/customizer Example of a dropdown menu structure, including headers, parent items with sub-items, and separated items, commonly used in navigation. ```html * Header * * Active * Parent * Item ``` -------------------------------- ### Navigation Links Example Source: https://getuikit.com/v2/docs/customizer A list of navigation links, commonly used in website headers or sidebars, including parent and sub-item structures. ```html * Home * Blog * Category * Post ``` -------------------------------- ### Switcher Animations (Scale Example) Source: https://getuikit.com/v2/docs/switcher This example shows how to implement the 'scale' animation for the UIkit Switcher component. Setting the `animation` parameter to `'scale'` in the `data-uk-switcher` attribute will cause content items to scale up when they become active. ```html ``` -------------------------------- ### Panels within a Grid (HTML) Source: https://getuikit.com/v2/docs/panel Example demonstrating how to use UIkit Panels within the Grid component. This example shows two panels side-by-side using grid width classes. ```html
...
...
``` -------------------------------- ### Message Component HTML Examples Source: https://getuikit.com/v2/docs/customizer Showcases different types of message components (Info, Success, Warning, Danger) in UIkit for displaying notifications or feedback to the user. ```html Info message Success message Warning message Danger message ``` -------------------------------- ### Tab Component Structure Source: https://getuikit.com/v2/docs/customizer Example of a basic tab component structure with active and disabled states, used for organizing content into switchable panels. ```html * Active * Item * Disabled ``` -------------------------------- ### Dotnav with Contrast for Images Source: https://getuikit.com/v2/docs/dotnav This example shows how to apply the `.uk-dotnav-contrast` class to a dot navigation for better visibility when used over images, such as in slideshows. The `.uk-flex-center` class is also included for centering the navigation. ```html ``` -------------------------------- ### Dropdown Alignment Examples (HTML) Source: https://getuikit.com/v2/docs/dropdown This set of examples demonstrates various alignment options for UIkit dropdowns using the `pos` parameter within the `data-uk-dropdown` attribute. Options include positioning the dropdown below, above, left, or right of the toggle, and centering or aligning it to the edges. ```html
...
...
...
...
``` -------------------------------- ### Switcher Animations (Fade Example) Source: https://getuikit.com/v2/docs/switcher This example demonstrates how to apply the 'fade' animation to the UIkit Switcher component. By adding the `animation: 'fade'` parameter to the `data-uk-switcher` attribute, content items will fade in and out during transitions. ```html ``` -------------------------------- ### HTML Editor JavaScript Options Example Source: https://getuikit.com/v2/docs/htmleditor This example shows how to set JavaScript options for the UIkit HTML Editor when initializing it via a data attribute. It includes options like 'mode' and 'maxsplitsize' to customize the editor's behavior and responsive behavior. ```html data-uk-htmleditor="{mode:'split', maxsplitsize:600}" ``` -------------------------------- ### Getuikit v2 Basic Markup Example Source: https://getuikit.com/v2/docs/layouts_documentation Demonstrates a nested div structure using Getuikit v2's common classes `.my-class-1`, `.my-class-2`, and `.my-class-3`. This structure is often used for layout and component nesting within the framework. ```html

...

...
``` -------------------------------- ### Image Overlay Positioning Examples Source: https://getuikit.com/v2/docs/overlay Demonstrates how to position the overlay panel within its container using classes like '.uk-overlay-top', '.uk-overlay-bottom', '.uk-overlay-left', or '.uk-overlay-right'. These classes control the alignment and cropping of the overlay. ```html
...
``` -------------------------------- ### UIkit Thumbnail Grid Layout Source: https://getuikit.com/v2/docs/thumbnail Shows how to combine thumbnails with the UIkit Grid component to create responsive thumbnail layouts. This example demonstrates a two-column layout with nested grids. ```html
``` -------------------------------- ### Basic Toggle Example (HTML) Source: https://getuikit.com/v2/docs/toggle Demonstrates how to use the `data-uk-toggle` attribute on a button to control the visibility of a div. By default, it toggles the `.uk-hidden` class. ```html
...
``` -------------------------------- ### Sortable JavaScript Initialization Source: https://getuikit.com/v2/docs/sortable Provides an example of how to manually initialize the sortable component using JavaScript. It allows for passing an options object to customize its behavior. ```javascript var sortable = UIkit.sortable(element, { /* options */ }); ``` -------------------------------- ### UIkit Pagination Markup Example Source: https://getuikit.com/v2/docs/pagination This snippet demonstrates the basic HTML structure for creating a UIkit pagination component. It includes classes for active and disabled states, along with standard pagination links. ```html ``` -------------------------------- ### Sticky Element with Delay and Animation (HTML) Source: https://getuikit.com/v2/docs/sticky This example shows how to introduce a delay before an element becomes sticky, making it appear only after scrolling a certain distance. It also demonstrates applying a UIkit animation for a smoother entrance. ```html
...
``` -------------------------------- ### Grid with Small Gutter Source: https://getuikit.com/v2/docs/grid This example demonstrates how to apply a smaller gutter between grid columns by adding the `.uk-grid-small` class to the grid container. This is useful for creating tighter layouts with minimal spacing. ```html
...
...
``` -------------------------------- ### Apply Cover to Video Element (HTML) Source: https://getuikit.com/v2/docs/cover This example shows how to make a video element cover its parent container using the `.uk-cover-object` class. A wrapper with `.uk-cover` is used to clip the video content. ```HTML
``` -------------------------------- ### Switcher with Tabs Integration (HTML) Source: https://getuikit.com/v2/docs/switcher This example shows how to combine the Switcher component with the Tab component. The `data-uk-tab` attribute is used instead of `data-uk-switcher`, with the `connect` parameter pointing to the content list (`#my-id`). This creates a tabbed interface. ```html ``` -------------------------------- ### Switcher with Navs Integration (HTML) Source: https://getuikit.com/v2/docs/switcher This example shows how to apply the UIkit Switcher to the Nav component. The `data-uk-switcher` attribute is added to the main `