@tantana/brand-credit
v0.1.1
Published
Tantana Medya design credit for client site footers
Maintainers
Readme
@tantana/brand-credit
Reusable Tantana Medya footer credit for client websites.
Agent / contributor docs: see AGENTS.md and ai/rules/.
Install
yarn add @tantana/brand-creditFor local development across sibling repos:
{
"dependencies": {
"@tantana/brand-credit": "file:../../tantana-brand-credit"
}
}Usage
import { TantanaCredit } from '@tantana/brand-credit'
<TantanaCredit siteRef="tutav" locale="tr" theme="light" />Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| siteRef | string | required | Referral slug for ?ref= analytics |
| locale | 'tr' \| 'en' | 'tr' | Built-in label language |
| label | string | — | Custom label; overrides locale |
| theme | 'light' \| 'dark' | 'light' | Footer background theme |
| className | string | — | Extra wrapper classes |
React reserves the
refprop, so the package usessiteRefinstead ofref="tutav".
With your own i18n
<TantanaCredit siteRef="immaks" label={dict.footer.designBy} theme="dark" />Publish
Automated (GitHub Actions)
- Add an npm Automation token (or granular publish token for
@tantana/brand-credit) as theNPM_TOKENrepository secret on GitHub. - Bump
versioninpackage.jsonand commit tomain. - Tag and push:
git tag v0.1.1
git push origin v0.1.1The Publish to npm workflow builds, checks the tag matches package.json, and publishes with provenance.
Optional: configure npm Trusted Publishers for this repo and workflow to avoid storing a long-lived token.
Manual
yarn build
npm publish --access publicRequires npm org access to @tantana to publish.
