### Install SaaS Blocks and Tailwind Plugins Source: https://saasblocks-tdg1-prd.fly.dev/docs/getting-started Installs the SaaS Blocks Tailwind plugin along with other recommended plugins like @tailwindcss/typography, @tailwindcss/forms, @tailwindcss/line-clamp, and tailwind-children using Yarn. ```bash yarn add -D tailwind-saasblocks @tailwindcss/typography @tailwindcss/forms @tailwindcss/line-clamp tailwind-children ``` -------------------------------- ### Team Pricing Plan Button Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/pricing Renders a 'Get Started' button for the 'Team' pricing plan. It features a primary color background and border, with hover effects for an accent color. An ArrowRightIcon is included. ```html ``` -------------------------------- ### Default Pricing Plan Button Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/pricing Renders a 'Get Started' button for the default pricing plan. It includes styling for a muted border, transparent background, and hover effects. An ArrowRightIcon is appended for visual indication. ```html ``` -------------------------------- ### Configure Tailwind CSS with SaaS Blocks Source: https://saasblocks-tdg1-prd.fly.dev/docs/getting-started Configures the tailwind.config.js file to include SaaS Blocks and other plugins. It extends the default theme with the Inter font and specifies content files for Tailwind to scan. ```javascript // @filename tailwind.config.js const defaultTheme = require("tailwindcss/defaultTheme"); /** @type {import('tailwindcss').Config} */ module.exports = { content: [ // TODO: Add your own content files here ], theme: { extend: { fontFamily: { sans: ["Inter", ...defaultTheme.fontFamily.sans], }, }, }, plugins: [ require("@tailwindcss/typography"), require("@tailwindcss/forms"), require("@tailwindcss/line-clamp"), require("tailwind-children"), require("tailwind-saasblocks"), ], }; ``` -------------------------------- ### Basic Pagination Example Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/paginations A fundamental example of a pagination component, likely using HTML for structure, CSS for styling, and JavaScript for interactivity. This component allows users to navigate through pages of content. ```html ``` ```css .pagination { display: flex; padding-left: 0; list-style: none; } .page-link { position: relative; display: block; padding: .5rem .75rem; margin-left: -1px; line-height: 1.25; color: #007bff; background-color: #fff; border: 1px solid #dee2e6; } .page-item:first-child .page-link { margin-left: 0; border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .page-item:last-child .page-link { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } ``` ```javascript document.querySelectorAll('.page-link').forEach(link => { link.addEventListener('click', (event) => { event.preventDefault(); // Add logic here to handle page navigation console.log('Navigating to page:', link.textContent); }); }); ``` -------------------------------- ### Callouts Component Usage Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/callout Demonstrates the basic structure and usage of the Callouts component. This is a foundational example for integrating callouts into your project. ```html

Callout Title

This is the main content of the callout. It can include text, links, or other relevant information.

``` -------------------------------- ### Drawer Component - App Components Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/drawer Provides documentation and examples for the Drawer component within the App Components section. This component is likely used for side navigation or contextual information panels. ```html
``` -------------------------------- ### HTML + Vite.js Starter Source: https://saasblocks-tdg1-prd.fly.dev/docs/starters A starter template for projects using plain HTML with Vite.js for a fast development experience. This is suitable for projects that do not require a framework like React or Vue. ```bash npm create vite@latest your-project-name --template html ``` -------------------------------- ### Next.js + TypeScript Starter Source: https://saasblocks-tdg1-prd.fly.dev/docs/starters A starter template for building projects with Next.js and TypeScript. This template is ideal for leveraging the power of React with a strong type-safe foundation. ```bash npx create-next-app@latest --ts --example https://github.com/saasblocks/starter-nextjs-typescript your-project-name ``` -------------------------------- ### Centered Large Text CTA in React Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/ctas A React component for a centered Call to Action (CTA) with large, impactful text. It includes a headline, descriptive paragraph, a link with an arrow icon, an avatar with a testimonial, and a primary 'Get started' button. This component is suitable for highlighting key features or encouraging user sign-ups. ```javascript import { ArrowRightIcon } from "@heroicons/react/outline"; import { StarIcon } from "@heroicons/react/solid"; export default function Page() { return (

Notes Done Right

Taking notes shouldn't be difficult. That's why we made it easy. With NoteBliss, the UI gets out of the way of your writing. But, when you need to make your notes shine, the intuitive interface allows for easy media importing like{" "} images ,{" "} video ,{" "} audio {" "} and even{" "} 3D experiences .

Explore NoteBliss Interface
avatar

“Possibly the best app I've ever used!”

Get started for free
); } ``` -------------------------------- ### Install Tailwind SaaS Blocks Plugin Source: https://saasblocks-tdg1-prd.fly.dev/docs/changelog This snippet shows how to install the `tailwind-saasblocks` plugin from npm, which provides gradients and components for Tailwind CSS projects. ```bash npm install tailwind-saasblocks ``` -------------------------------- ### React Blog Page Navigation and Header Source: https://saasblocks-tdg1-prd.fly.dev/docs/templates/penta This React component renders a blog page's navigation bar and header section. It includes links for use cases, product, about, sign in, and sign up, along with a mobile menu button. The header displays a 'Resources' category, a main title 'Level up your startup', and a descriptive paragraph. It utilizes Heroicons for icons and is styled using Tailwind CSS classes. ```jsx import { MenuAlt3Icon, ArrowCircleRightIcon, ArrowRightIcon, } from "@heroicons/react/outline"; export default function Page() { return (
{/* Nav */}
{/* Header section */}
Resources

Level up your startup

Resources to help startups grow their ideas into products used by millions

{/* Deco - Circle SVG */}
); } ``` -------------------------------- ### Form Validation Example - JavaScript Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/form A basic JavaScript example demonstrating how to validate form inputs before submission. This typically involves checking required fields and input formats. ```javascript const form = document.getElementById('myForm'); const username = document.getElementById('username'); form.addEventListener('submit', function(event) { if (username.value === '') { alert('Username is required!'); event.preventDefault(); } }); ``` -------------------------------- ### Radio Button Component - HTML Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/form Provides an example of radio button inputs, used for selecting a single option from a group. ```html
``` -------------------------------- ### Configure MRR Chart Options Source: https://saasblocks-tdg1-prd.fly.dev/docs/screens/dashboard Sets the display options for the MRR chart, specifically configuring the Y-axis to start at 0 with a step size of 5000 and hiding the legend. ```javascript export const mrrChartOptions = { scales: { y: { min: 0, ticks: { stepSize: 5000 }, }, }, plugins: { legend: { display: false } }, }; ``` -------------------------------- ### Settings Page Header and Tab Group Initialization Source: https://saasblocks-tdg1-prd.fly.dev/docs/screens/settings Sets up the main header for the settings page and initializes a vertical Tab.Group component from a UI library. It includes a default selected tab index and applies specific styling for layout. ```jsx

Settings

{settingsTabs.map((tab) => ( {({ selected }) => ( )} ))}

Home

Integrations

{integrationTabs.map((tab) => ( {({ selected }) => ( )} ))} ``` -------------------------------- ### Configure Net Revenue Chart Options Source: https://saasblocks-tdg1-prd.fly.dev/docs/screens/dashboard Sets the display options for the Net Revenue chart, configuring the Y-axis to start at 0 with a step size of 50000 and hiding the legend. ```javascript export const netRevenueChartOptions = { scales: { y: { min: 0, ticks: { stepSize: 50000 }, }, }, plugins: { legend: { display: false } }, }; ``` -------------------------------- ### Tables Component Usage Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/table This snippet demonstrates the basic structure and usage of the Tables component. It outlines the necessary HTML markup to render a table with standard features. ```html
Header 1 Header 2
Data 1 Data 2
``` -------------------------------- ### Drawer Component - Marketing Components Source: https://saasblocks-tdg1-prd.fly.dev/docs/components/drawer Details the usage of the Drawer component in the Marketing Components section, potentially for features like promotional pop-ups or additional information on landing pages. ```html
```