### Install Actify using Package Managers Source: https://github.com/actifyjs/actify/blob/main/apps/docs/content/getting-started/installation.md Installs the Actify library into your project using your preferred package manager. Ensure Tailwind CSS is already set up. This command adds Actify as a dependency. ```shell pnpm add actify ``` ```shell yarn add actify ``` ```shell npm i actify ``` -------------------------------- ### Install Actify React Components Library Source: https://github.com/actifyjs/actify/blob/main/README.md Instructions for installing the Actify library using different package managers like pnpm, yarn, and npm. This is the initial step before using Actify components in a React project. ```bash # with pnpm pnpm add actify # with yarn yarn add actify # with npm npm install actify ``` -------------------------------- ### Actify Dialog Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates the usage of the Actify Dialog component for various user interaction scenarios. It includes basic dialogs, controlled dialogs managed by state, and alert dialogs. Ensure 'actify' library is installed as a dependency. ```tsx import { Dialog, DialogActivator } from 'actify' import { Button } from 'actify' import { useState } from 'react' function DialogExample() { const [isOpen, setIsOpen] = useState(false) return (
{/* Basic dialog */}

Are you sure you want to continue?

{/* Controlled dialog */}
setIsOpen(false)} >
{/* Alert dialog */}

This action cannot be undone. All your data will be permanently deleted.

) } ``` -------------------------------- ### Install Actify Package Manager Source: https://context7.com/actifyjs/actify/llms.txt Instructions for installing the Actify library using npm, yarn, or pnpm. These commands add the necessary package to your project dependencies. ```bash # with npm npm install actify # with yarn yarn add actify # with pnpm pnpm add actify ``` -------------------------------- ### Actify Switch Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Showcases the Actify Switch component for binary on/off states. Includes examples for basic toggles, icons, color variations, disabled states, and controlled components. ```tsx import { Switch } from 'actify' import { useState } from 'react' function SwitchExample() { const [notifications, setNotifications] = useState(true) return (
{/* Basic switch */} Enable notifications {/* With icons */} Dark mode {/* Show only selected icon */} Auto-save {/* Colored switches */} Secondary color Tertiary color Error state {/* Disabled switch */} Disabled option {/* Controlled switch with callback */} { setNotifications(selected) console.log('Notifications:', selected ? 'enabled' : 'disabled') }} > Push notifications
) } ``` -------------------------------- ### Actify Button Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Illustrates various configurations and states of the Actify Button component. Includes examples for elevated, filled, tonal, outlined, text, and disabled buttons, showcasing different color and variant props. ```tsx import { Button } from 'actify' function ButtonExample() { return (
{/* Elevated button (default) */} {/* Filled button */} {/* Tonal button */} {/* Outlined button */} {/* Text button */} {/* Disabled button */}
) } ``` -------------------------------- ### Basic React Component Setup with Actify Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates how to import and use core Actify components like Button, TextField, and Card within a basic React application structure. This snippet shows initial rendering and basic props. ```jsx import { Button, TextField, Card } from 'actify' function App() { return (

Welcome to Actify

) } export default App ``` -------------------------------- ### Actify Theme CSS Configuration Source: https://github.com/actifyjs/actify/blob/main/apps/docs/content/getting-started/installation.md Defines Material Design color variables and applies them to CSS theme properties. This CSS file should be imported into your project's main CSS file to enable Actify's theming capabilities. ```css @import 'tailwindcss'; :root { --md-sys-color-background: #18130b; --md-sys-color-on-background: #ede1d3; --md-sys-color-surface: #18130b; --md-sys-color-surface-dim: #18130b; --md-sys-color-surface-bright: #3f382f; --md-sys-color-surface-container-lowest: #120d06; --md-sys-color-surface-container-low: #201b12; --md-sys-color-surface-container: #251f16; --md-sys-color-surface-container-high: #2f2920; --md-sys-color-surface-container-highest: #3b342a; --md-sys-color-on-surface: #ede1d3; --md-sys-color-surface-variant: #504534; --md-sys-color-on-surface-variant: #d5c4ae; --md-sys-color-inverse-surface: #ede1d3; --md-sys-color-inverse-on-surface: #362f26; --md-sys-color-outline: #9d8f7b; --md-sys-color-outline-variant: #504534; --md-sys-color-shadow: #000000; --md-sys-color-scrim: #000000; --md-sys-color-surface-tint: #ffba3e; --md-sys-color-primary: #ffc971; --md-sys-color-on-primary: #432c00; --md-sys-color-primary-container: #ecaa2e; --md-sys-color-on-primary-container: #614100; --md-sys-color-inverse-primary: #7f5700; --md-sys-color-secondary: #e6c188; --md-sys-color-on-secondary: #432c02; --md-sys-color-secondary-container: #5e4518; --md-sys-color-on-secondary-container: #d7b37c; --md-sys-color-tertiary: #c7dc64; --md-sys-color-on-tertiary: #2c3400; --md-sys-color-tertiary-container: #acc04b; --md-sys-color-on-tertiary-container: #414d00; --md-sys-color-error: #ffb4ab; --md-sys-color-on-error: #690005; --md-sys-color-error-container: #93000a; --md-sys-color-on-error-container: #ffdad6; } @theme { --color-background: var(--md-sys-color-background); --color-on-background: var(--md-sys-color-on-background); --color-surface: var(--md-sys-color-surface); --color-surface-dim: var(--md-sys-color-surface-dim); --color-surface-bright: var(--md-sys-color-surface-bright); --color-surface-container-lowest: var( --md-sys-color-surface-container-lowest ); --color-surface-container-low: var(--md-sys-color-surface-container-low); --color-surface-container: var(--md-sys-color-surface-container); --color-surface-container-high: var(--md-sys-color-surface-container-high); --color-surface-container-highest: var( --md-sys-color-surface-container-highest ); --color-on-surface: var(--md-sys-color-on-surface); --color-surface-variant: var(--md-sys-color-surface-variant); --color-on-surface-variant: var(--md-sys-color-on-surface-variant); --color-inverse-surface: var(--md-sys-color-inverse-surface); --color-inverse-on-surface: var(--md-sys-color-inverse-on-surface); --color-outline: var(--md-sys-color-outline); --color-outline-variant: var(--md-sys-color-outline-variant); --color-shadow: var(--md-sys-color-shadow); --color-scrim: var(--md-sys-color-scrim); --color-surface-tint: var(--md-sys-color-surface-tint); --color-primary: var(--md-sys-color-primary); --color-on-primary: var(--md-sys-color-on-primary); --color-primary-container: var(--md-sys-color-primary-container); --color-on-primary-container: var(--md-sys-color-on-primary-container); --color-inverse-primary: var(--md-sys-color-inverse-primary); --color-secondary: var(--md-sys-color-secondary); --color-on-secondary: var(--md-sys-color-on-secondary); --color-secondary-container: var(--md-sys-color-secondary-container); --color-on-secondary-container: var(--md-sys-color-on-secondary-container); --color-tertiary: var(--md-sys-color-tertiary); --color-on-tertiary: var(--md-sys-color-on-tertiary); --color-tertiary-container: var(--md-sys-color-tertiary-container); --color-on-tertiary-container: var(--md-sys-color-on-tertiary-container); --color-error: var(--md-sys-color-error); --color-on-error: var(--md-sys-color-on-error); --color-error-container: var(--md-sys-color-error-container); --color-on-error-container: var(--md-sys-color-on-error-container); } ``` -------------------------------- ### Basic Button Usage in React Source: https://github.com/actifyjs/actify/blob/main/README.md A simple example demonstrating how to import and use the Button component from the Actify library in a React functional component. It shows the basic JSX syntax for rendering the component. ```jsx import { Button } from 'actify' export default () => { return } ``` -------------------------------- ### Actify TextField Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Showcases the Actify TextField component with different variants (filled, outlined) and features. Includes examples for email input with validation, website input with prefixes/suffixes, password fields, textareas, and inputs with leading/trailing icons. ```tsx import { TextField } from 'actify' import { useState } from 'react' function TextFieldExample() { const [email, setEmail] = useState('') const [password, setPassword] = useState('') return (
{/* Filled variant with validation */} setEmail(e.target.value)} isRequired validate={(value) => { if (!value.includes('@')) return 'Please enter a valid email' }} description="Enter your email address" /> {/* Outlined variant with prefix/suffix */} {/* Password field */} setPassword(e.target.value)} isRequired minLength={8} /> {/* Textarea */} {/* With icons */} 🔍} trailingIcon={} />
) } ``` -------------------------------- ### Actify Card Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Illustrates the usage of the Actify Card component for displaying grouped content. It showcases different variants like elevated, filled, and outlined cards, along with examples of custom elevation and interactive cards with ripple effects. Requires the 'actify' library. ```tsx import { Card, Button, Elevation } from 'actify' function CardExample() { return (
{/* Elevated card (default) */}

Product Card

This is an elevated card with shadow.

{/* Filled card */}

Filled Card

This card has a filled background.

{/* Outlined card */}

Outlined Card

This card has a border outline.

{/* Interactive card with ripple */} alert('Card clicked!')} style={{ width: '300px', padding: '20px', cursor: 'pointer' }} >

Interactive Card

Click anywhere on this card to see the ripple effect.

{/* Card with custom elevation */}

High Elevation

This card has a stronger shadow (elevation level 4).

) } ``` -------------------------------- ### Actify Radio Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates the Actify Radio component for mutually exclusive selections. Supports basic groups, colored options, disabled states, and validation. ```tsx import { Radio, RadioGroup } from 'actify' function RadioExample() { return (
{/* Basic radio group */} console.log('Selected:', value)} > Free - $0/month Pro - $10/month Enterprise - $50/month {/* Colored radio group */} Light Dark Auto {/* Disabled radio group */} Standard Shipping Express Shipping {/* With validation */} Credit Card PayPal Cryptocurrency
) } ``` -------------------------------- ### Accordion Component Examples in React (tsx) Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates the usage of the Accordion component from the Actify UI library. It shows basic accordion structure, how to allow multiple panels to be open simultaneously, and how to control the open state programmatically. No external dependencies beyond 'actify' are required. ```tsx import { Accordion, AccordionItem, AccordionHeader, AccordionContent } from 'actify' function AccordionExample() { return (
{/* Basic accordion */} What is Actify? Actify is a React component library that implements Material Design 3 specifications with full accessibility support. How do I install it? Install Actify using npm install actify, yarn add actify, or pnpm add actify. Then import components as needed. Is it accessible? Yes! Actify uses React Aria for accessibility support following WAI-ARIA specifications published by the W3C. {/* Multiple open panels */} Features
  • TypeScript support
  • Tailwind CSS integration
  • Framer Motion animations
  • Full accessibility
Components Over 40 components including buttons, forms, navigation, dialogs, and data display elements.
{/* Controlled accordion */} Controlled Panel This accordion's open state is controlled by the parent component.
) } ``` -------------------------------- ### Actify Select Component Examples (React/TSX) Source: https://context7.com/actifyjs/actify/llms.txt Showcases the Actify Select component with different configurations, including basic usage, filled and outlined variants, default selections, leading icons, disabled states, and custom popover placements. It uses React and the 'actify' library for the Select and SelectOption components. ```tsx import { Select, SelectOption } from 'actify' function SelectExample() { return (
{/* Basic select */} {/* Outlined variant with default selection */} {/* With leading icon */} {/* Disabled select */} {/* With custom popover placement */}
) } ``` -------------------------------- ### Menu Component Examples in React (tsx) Source: https://context7.com/actifyjs/actify/llms.txt Illustrates the various functionalities of the Menu component from the Actify UI library. This includes creating basic menus, nested submenus, single and multiple selection modes, and disabling menu items. It depends on 'actify' components like Button. ```tsx import { Menu, MenuItem, MenuButton, Submenu } from 'actify' import { Button } from 'actify' function MenuExample() { return (
{/* Basic menu */} console.log('New')}>New File console.log('Open')}>Open console.log('Save')}>Save console.log('Exit')}>Exit {/* Menu with submenu */} Undo Redo Uppercase Lowercase Title Case Delete {/* Menu with selection */} console.log('Selected:', Array.from(keys))} > Small Medium Large {/* Menu with multiple selection */} Bold Italic Underline Strikethrough {/* Menu with disabled items */} Copy Paste Cut (disabled) Select All
) } ``` -------------------------------- ### Card with Ripple Effect - React JSX Source: https://github.com/actifyjs/actify/blob/main/apps/docs/content/components/cards.md This example demonstrates how to create a card with a ripple effect using the Actify UI Card component in React. It includes an image and text content. The `ripple` prop is used to enable the ripple effect. ```jsx
card with ripple

Tempore rem numquam qui quae placeat, enim ut temporibus inventore architecto eaque.

``` -------------------------------- ### Actify Slider Component Examples Source: https://context7.com/actifyjs/actify/llms.txt Illustrates the Actify Slider component for selecting numeric values within a range. Covers basic sliders, labeled values, range selection, color options, disabled states, steps, and vertical orientation. ```tsx import { Slider } from 'actify' import { useState } from 'react' function SliderExample() { const [volume, setVolume] = useState(50) const [price, setPrice] = useState([20, 80]) return (
{/* Basic slider */} {/* With labeled values */} {/* Price range slider */} {/* Colored slider */} {/* Disabled slider */} {/* With step */} {/* Vertical orientation */}
) } ``` -------------------------------- ### Actify Checkbox Component Examples (React/TSX) Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates various functionalities of the Actify Checkbox component, including simple checkboxes, indeterminate states, colored options, checkbox groups, and disabled states. It utilizes React's useState hook for managing component states and relies on the 'actify' library for the Checkbox and CheckboxGroup components. ```tsx import { Checkbox, CheckboxGroup } from 'actify' import { useState } from 'react' function CheckboxExample() { const [checked, setChecked] = useState(false) const [indeterminate, setIndeterminate] = useState(true) return (
{/* Simple checkbox */} Accept terms and conditions {/* Indeterminate checkbox */} { setIndeterminate(false) setChecked(selected) }} > Select all items {/* Colored checkbox */} Send notifications {/* Checkbox group */} console.log('Selected:', values)} > Email updates SMS alerts Push notifications {/* Disabled checkbox */} Disabled option
) } ``` -------------------------------- ### Table Component API Source: https://github.com/actifyjs/actify/blob/main/apps/docs/content/components/table.md This section details the available props and events for the Table component. ```APIDOC ## Table Component ### Description The Table component allows you to display tabular data. It supports features like row selection, sorting, and drag and drop. ### Props #### Table Component Props - **children** (`ReactNode`) - Required - The elements that make up the table. Includes the TableHeader, TableBody, Columns, and Rows. - **selectionBehavior** (`SelectionBehavior`) - Optional - Defaults to 'toggle'. How multiple selection should behave in the collection. - **disabledBehavior** (`DisabledBehavior`) - Optional - Defaults to 'selection'. Whether disabledKeys applies to all interactions, or only selection. - **dragAndDropHooks** (`DragAndDropHooks`) - Optional - The drag and drop hooks returned by useDragAndDrop used to enable drag and drop behavior for the Table. - **disabledKeys** (`Iterable`) - Optional - A list of row keys to disable. - **selectionMode** (`SelectionMode`) - Optional - The type of selection that is allowed in the collection. - **disallowEmptySelection** (`boolean`) - Optional - Whether the collection allows empty selection. - **selectedKeys** (`'all' | Iterable`) - Optional - The currently selected keys in the collection (controlled). - **defaultSelectedKeys** (`'all' | Iterable`) - Optional - The initial selected keys in the collection (uncontrolled). - **sortDescriptor** (`SortDescriptor`) - Optional - The current sorted column and direction. - **className** (`string`) - Optional - The CSS className for the element. A function may be provided to compute the class based on component state. - **style** (`React.CSSProperties`) - Optional - The inline style for the element. A function may be provided to compute the style based on component state. ### Events #### Table Component Events - **onRowAction** - `(key: Key) => void` - Handler that is called when a user performs an action on the row. - **onSelectionChange** - `(keys: Selection) => void` - Handler that is called when the selection changes. - **onSortChange** - `(descriptor: SortDescriptor) => any` - Handler that is called when the sorted column or direction changes. - **onScroll** - `(e: UIEvent) => void` - Handler that is called when a user scrolls. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll_event). ``` -------------------------------- ### Actify LinearProgress Component: Determinate, Indeterminate, and Colored Source: https://context7.com/actifyjs/actify/llms.txt Illustrates the Actify LinearProgress component for indicating the progress of operations. It supports both determinate (with value, minValue, maxValue) and indeterminate states, as well as various color options (primary, secondary, tertiary, error) and custom styling through className and style props. Imports LinearProgress from 'actify' and uses React hooks for state management. ```tsx import { LinearProgress } from 'actify' import { useState, useEffect } from 'react' function LinearProgressExample() { const [progress, setProgress] = useState(0) useEffect(() => { const timer = setInterval(() => { setProgress((prev) => (prev >= 100 ? 0 : prev + 10)) }, 1000) return () => clearInterval(timer) }, []) return (
{/* Determinate progress */}

Upload Progress: {progress}%

{/* Indeterminate progress */}

Loading...

{/* Colored progress bars */}

Primary color

Secondary color

Tertiary color

Error state

{/* Custom styling */}

Custom styled progress

) } ``` -------------------------------- ### Actify Tabs Component: Horizontal, Vertical, and Custom Content Source: https://context7.com/actifyjs/actify/llms.txt Demonstrates the Actify Tabs component for organizing content with different orientations (horizontal, vertical) and custom content styling. It imports Tabs and Item from 'actify' and uses React's JSX syntax. The component handles default selected keys and selection change events. ```tsx import { Tabs, Item } from 'actify' function TabsExample() { return (
{/* Horizontal tabs */} console.log('Selected tab:', key)} >

Profile Settings

Manage your profile information and preferences.

Security Settings

Update your password and security options.

Notification Preferences

Configure how you receive notifications.

{/* Vertical tabs */}

Home

Welcome to the home page.

Products

Browse our product catalog.

About Us

Learn more about our company.

{/* Tabs with custom content class */}
Dashboard content
Analytics content
) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.