2.1.12 • Published 1 month ago

@smtv/tv-component-library v2.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

@smtv/tv-component-library

A TV-optimized React component library for audio streaming applications.

Features

  • TV-specific UI components
  • Remote control navigation support
  • Accessibility-focused design
  • Dark mode by default
  • Built with TypeScript
  • Storybook documentation

Installation

npm install @smtv/tv-component-library

Usage

import { ChannelCard } from '@smtv/tv-component-library';

function App() {
  return (
    <ChannelCard
      title="Channel Name"
      description="Channel description"
      // Add other props as needed
    />
  );
}

Development

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Start Storybook:
    npm run storybook
  4. Build the library:
    npm run build

Publishing to npm

After editing or adding components, follow these steps to publish a new version to npm:

  1. Pull the latest changes
    git pull origin main
  2. Install dependencies (if you haven't already)
    npm install
  3. Build the library
    npm run build
  4. Commit and push your changes to GitHub
    git add .
    git commit -m "commit message"
    git push origin main
  5. Update the version number in package.json
    • Follow semantic versioning:
      • Patch: bug fixes
      • Minor: new features/components
      • Major: breaking changes
    • Example: change "version": "1.2.3" to "version": "1.2.4"
    • Or use the CLI to bump the patch version:
      npm version patch
  6. Login to npm (if not already logged in)
    npm login
  7. Publish the package
    npm publish --access public

Note:

  • You must have permission to publish to the npm package.
  • If you encounter any issues, ask a developer for help.

Documentation

Visit our Storybook documentation for detailed component documentation and examples.

License

ISC

2.1.12

1 month ago

2.1.11

1 month ago

2.1.10

2 months ago

2.1.9

2 months ago

2.1.8

2 months ago

2.1.7

2 months ago

2.1.6

2 months ago

2.1.5

2 months ago

2.1.4

2 months ago

2.1.3

2 months ago

2.1.2

2 months ago

2.1.0

2 months ago

2.0.3

2 months ago

2.0.2

2 months ago

2.0.1

2 months ago

2.0.0

2 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago