1.12.2 • Published 10 months ago

av1-c v1.12.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

AV1-C

AV1-C is a library of React UI components for building AV1 products and related projects. The component library features seamless light and dark mode support.

Installation

# npm
npm install av1-c

# yarn
yarn add av1-c

# bun
bun add av1-c

Tailwind Setup

AV1-C uses Tailwind CSS for styling. Add the following to your tailwind.config.js:

/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: 'class',
  content: [
    // ... your existing content
    "./node_modules/av1-c/**/*.{js,ts,jsx,tsx}",
  ],
  // ... rest of your config
}

Theme Support

Wrap your application with the ThemeProvider for proper dark/light mode support:

import { ThemeProvider } from "av1-c";

function App() {
  return (
    <ThemeProvider>
      <YourApp />
    </ThemeProvider>
  );
}

The ThemeProvider respects system preferences by default, but allows manual override through the useTheme hook:

import { useTheme, Button } from "av1-c";

function ThemeToggle() {
  const { theme, setTheme } = useTheme();
  
  return (
    <Button onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
      Toggle Theme
    </Button>
  );
}

Component Usage

import { Card, Button, SchemaEditor } from "av1-c";

function MyComponent() {
  return (
    <Card>
      <Card.Header>
        <Card.Title>Example Card</Card.Title>
      </Card.Header>
      <Card.Content>
        Content goes here
      </Card.Content>
      <Card.Footer>
        <Button>Action</Button>
      </Card.Footer>
    </Card>
  );
}

For complete documentation and examples, see the documentation site.

Contributing

This project follows the Conventional Commits specification for commit messages. Please format your commit messages accordingly:

  • feat(scope): description - for new features
  • fix(scope): description - for bug fixes
  • docs(scope): description - for documentation changes
  • style(scope): description - for code style changes
  • refactor(scope): description - for code refactoring
  • test(scope): description - for adding or modifying tests
  • chore(scope): description - for maintenance tasks

Examples:

  • feat(editor): add syntax highlighting
  • fix(compiler): resolve memory leak
1.12.2

10 months ago

1.12.1

10 months ago

1.12.0

10 months ago

1.11.0

11 months ago

1.10.0

11 months ago

1.9.3

12 months ago

1.9.2

12 months ago

1.9.1

12 months ago

1.9.0

12 months ago

1.8.2

12 months ago

1.8.1

12 months ago

1.8.0

12 months ago

1.7.1

12 months ago

1.7.0

12 months ago

1.6.0

12 months ago

1.5.0

12 months ago

1.4.0

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.1

12 months ago