Fadgram Vue Documentation

website·Indexed 29 days ago

https://talalalmrka.github.io/fadgram-vue

A comprehensive UI component library built for Vue 3 and TypeScript, utilizing Tailwind CSS 4. It includes a wide range of components such as Buttons, Alerts, Accordions, Tabs, and various form elements like Rich Select, Icon Picker, and Textareas.

Tokens
8.9K
Snippets
74
Records
86
Agent score
74%

What's inside Fadgram Vue

  1. Overview of Fadgram Vue component library

    Fadgram Vue is a comprehensive UI components package for Vue 3 designed to streamline development. It provides a variety of customizable and accessible components such as inputs, selects, checkboxes, switches, textareas, and alerts, with built-in support for icons, sizing, and multiple styles to create responsive user interfaces.
  2. Fadgram Vue technical features and capabilities

    Fadgram Vue is a component library built for Vue 3 using the Composition API and TypeScript. It is designed with a Tailwind CSS-first approach, meaning all components integrate with Tailwind utilities. The library is tree-shakable to minimize bundle size and includes components such as accordions, icon pickers, form controls, and alerts.
  3. Import and register specific fadgram-vue components

    Import only the specific components needed from the fadgram-vue package to reduce the final bundle size and maintain better control over the application structure.
    import { createApp } from 'vue'
    import App from './App.vue'
    import { FgAccordion, FgAlert } from 'fadgram-vue' // Import specific components
    
    const app = createApp(App)
    
    // Register the component locally or globally
    app.component('FgAccordion', FgAccordion)
    app.component('FgAlert', FgAlert)
    
    app.mount('#app')
  4. Install and use the FgLoader component

    The FgLoader component provides a visual loading indicator. It can be imported from the fadgram-vue package and used in Vue templates as <fg-loader />.
    import { FgLoader } from 'fadgram-vue'
    <template>
      <fg-loader />
    </template>
  5. Install and use FgIcon in fadgram-vue

    The FgIcon component is used to display icons within a Vue application. It requires an icon prop which accepts a string representing the icon class to be displayed. A full list of available icon names can be found in the Fadgram icons list documentation.
    <template>
      <fg-icon icon="bi-emoji-smile-fill" />
    </template>
    
    <script setup>
    import { FgIcon } from 'fadgram-vue'
    </script>
  6. Meet the technical requirements for Fadgram Vue

    To use Fadgram Vue, ensure your development environment meets the following requirements:

    • Vue 3.x
    • Node.js (LTS version recommended)
    • npm or yarn for package management
    • Tailwind CSS 4
    • Basic knowledge of Vue.js and TypeScript