### Navigation Bar with Get Started Button Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/heroes/heroes-8cbb7080120b.mdx This snippet demonstrates a responsive navigation bar. It includes navigation links and a prominent 'Get started' button styled with background color and hover effects. The navigation is designed to adapt to different screen sizes. ```html ``` -------------------------------- ### Float UI Pure CSS Setup Source: https://github.com/marsx-dev/floatui/blob/main/posts/getting-started.mdx This CSS code provides the necessary base styles for Float UI components to function correctly without requiring a Tailwind CSS setup. It resets default browser styles and applies consistent formatting. ```css *, ::before, ::after { box-sizing: border-box; /* 1 */ border-width: 0; /* 2 */ border-style: solid; /* 2 */ border-color: currentColor; /* 2 */ } ::before, ::after { --tw-content: ''; } /* 1. Use a consistent sensible line-height in all browsers. 2. Prevent adjustments of font size after orientation changes in iOS. 3. Use a more readable tab size. 4. Use the user's configured `sans` font-family by default. */ html { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ -moz-tab-size: 4; /* 3 */ tab-size: 4; /* 3 */ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ } /* 1. Remove the margin in all browsers. 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. */ body { margin: 0; /* 1 */ line-height: inherit; /* 2 */ } /* 1. Add the correct height in Firefox. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 3. Ensure horizontal rules are visible by default. */ hr { height: 0; /* 1 */ color: inherit; /* 2 */ border-top-width: 1px; /* 3 */ } /* Add the correct text decoration in Chrome, Edge, and Safari. */ abbr[title] { -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } /* Remove the default font size and weight for headings. */ h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } /* Reset links to optimize for opt-in styling instead of opt-out. */ a { color: inherit; text-decoration: inherit; } /* Add the correct font weight in Edge and Safari. */ b, strong { font-weight: bolder; } /* 1. Use the user's configured `mono` font family by default. 2. Correct the odd `em` font sizing in all browsers. */ code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */ font-size: 1em; /* 2 */ } /* Add the correct font size in all browsers. */ small { font-size: 80%; } /* Prevent `sub` and `sup` elements from affecting the line height in all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } /* 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=195016) 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 3. Remove gaps between table borders by default. */ table { text-indent: 0; /* 1 */ border-color: inherit; /* 2 */ border-collapse: collapse; /* 3 */ } /* 1. Change the font styles in all browsers. 2. Remove the margin in Firefox and Safari. 3. Remove default padding in all browsers. */ button, input, optgroup, select, textarea { font-family: inherit; /* 1 */ font-size: 100%; /* 1 */ line-height: inherit; /* 1 */ color: inherit; /* 1 */ margin: 0; /* 2 */ padding: 0; /* 3 */ } /* Remove the inheritance of text transform in Edge and Firefox. */ button, select { text-transform: none; } /* 1. Correct the inability to style clickable types in iOS and Safari. 2. Remove default button styles. */ button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; /* 1 */ background-color: transparent; /* 2 */ background-image: none; /* 2 */ } /* Use the modern Firefox focus style for all focusable elements. */ :-moz-focusring { outline: auto; } /* Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) */ :-moz-ui-invalid { box-shadow: none; } /* Add the correct vertical alignment in Chrome and Firefox. */ progress { vertical-align: baseline; } /* Correct the cursor style of increment and decrement buttons in Safari. */ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } /* 1. Correct the odd appearance in Chrome and Safari. 2. Correct the outline style in Safari. */ [type='search'] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } ``` -------------------------------- ### Create Account Form HTML Structure Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/authentication/authentication-ccedb97166eb.mdx This snippet provides the HTML structure for a 'Create Account' form. It includes the main layout, header with logo and text, input fields for name, email, and password, a submit button, and a 'Continue with Google' button. The HTML is designed to be styled with Tailwind CSS. ```html

Create an account

Already have an account? Log in

``` -------------------------------- ### Get Started Button with Arrow Icon (HTML/SVG) Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/heroes/heroes-40b102808fb4.mdx A 'Get started' button styled with Tailwind CSS, featuring an arrow icon. This component is typically used for calls to action. ```html Get started ``` -------------------------------- ### HTML Structure for Navigation with Search Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/sidebars/sidebars-1f142eb36aba.mdx This HTML snippet demonstrates a fixed navigation bar with a search input. It uses Alpine.js (`x-data`) for state management and includes a logo and search icon. The structure is designed for responsiveness. ```html
``` -------------------------------- ### Display Centered CTA with Two Links in Svelte Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/cta-sections/cta-sections-89d412ecb171.mdx This Svelte component displays a centered Call to Action section with a heading, descriptive text, and two links: 'Get started' and 'Learn more'. The 'Get started' link is styled as a primary button with a dark background, while 'Learn more' is styled as a secondary link with a border. ```svelte

Build the future with us

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident.

``` -------------------------------- ### Sign-up Form with Social Login Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/authentication/authentication-fff7c32ba871.mdx A complete sign-up form with fields for name, email, and password, along with options to sign up using Google, Twitter, or GitHub. Includes a 'Log in' link for existing users. ```html

Sign up

Already have an account? Log in

Or continue with

``` -------------------------------- ### Disable Pointer Cursor for Disabled Elements Source: https://github.com/marsx-dev/floatui/blob/main/posts/getting-started.mdx Ensures that disabled elements do not display the pointer cursor. ```CSS :disabled { cursor: default; } ``` -------------------------------- ### SVG Icon Usage Example Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/footers/footers-181aeccbae3c.mdx Demonstrates how to use an SVG icon within an HTML structure. This example shows a basic inline SVG implementation, which is common for web interfaces. ```HTML ``` -------------------------------- ### Control Textarea Resize Source: https://github.com/marsx-dev/floatui/blob/main/posts/getting-started.mdx Prevents textareas from being resized horizontally by default, allowing only vertical resizing. ```CSS textarea { resize: vertical; } ``` -------------------------------- ### Create Account Form in React (JSX) Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/authentication/authentication-ccedb97166eb.mdx This snippet demonstrates a complete 'Create Account' form implemented in React using JSX. It includes input fields for name, email, and password, along with a submit button and an option to continue with Google authentication. The styling is handled by Tailwind CSS classes. ```jsx function App() { return (

Create an account

Already have an account? Log in

e.preventDefault()} className="space-y-5" >
) } ``` -------------------------------- ### Feature Card Implementation Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/feature-sections/feature-sections-afa753ebec53.mdx Demonstrates the implementation of a feature card component using HTML and JavaScript. It includes an icon, title, description, and a 'Learn more' link. ```html

Simple solutions for complex issues

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue, nisl eget molestie varius, enim ex faucibus purus.

    {#each features as item (item.title)}
  • {@html item.icon}

    {item.title}

    {item.desc}

    Learn more
  • {/each}
``` -------------------------------- ### Set Summary Display Source: https://github.com/marsx-dev/floatui/blob/main/posts/getting-started.mdx Adds the correct display property for the 'summary' element in Chrome and Safari. ```CSS summary { display: list-item; } ``` -------------------------------- ### Handle Hidden Attribute Source: https://github.com/marsx-dev/floatui/blob/main/posts/getting-started.mdx Ensures the default browser behavior for the 'hidden' attribute, setting its display to 'none'. ```CSS [hidden] { display: none; } ``` -------------------------------- ### HTML Structure for Blog Component Source: https://github.com/marsx-dev/floatui/blob/main/componentsDB/cards/cards-8ea106d2c788.mdx This HTML snippet defines the structure for a blog section. It includes a main heading, a descriptive paragraph, and a grid layout to display individual blog posts. Each post is represented by an `
` tag containing a link, publication date, title, description, and a 'READ MORE' button with an icon. This structure is designed to be populated dynamically by JavaScript. ```html
```