@unily/resin-components
v0.1.0-beta.18
Published
Unily.Resin is the central repository for Unily design system, containing reusable React components. It provides a unified UI foundation to ensure consistency, accessibility, and brand alignment across all applications.
Keywords
Readme
@unily/resin-components
React component library for the Unily Resin design system.
Install
npm install @unily/resin-components @unily/resin-icons @unily/resin-tokensPeer dependencies:
react^19.0.0react-dom^19.0.0@unily/resin-icons(matching major version)@unily/resin-tokens(matching major version)
ESM-only package
@unily/resin-components is published as ESM only.
- Use
importsyntax. require('@unily/resin-components')is not supported.
import { Button } from '@unily/resin-components';For Node.js environments, use an ESM-compatible setup (for example "type": "module").
Quick start
Import tokens once at your app entry point, then consume components.
import '@unily/resin-tokens/variables';
import { Button } from '@unily/resin-components';
export function App() {
return <Button label="Continue" />;
}Usage notes
- Install
@unily/resin-iconsand@unily/resin-tokensalongside this package. - Load token CSS before rendering components so styles resolve correctly.
- Use Resin components and icons together for consistent behavior and visuals.
import '@unily/resin-tokens/variables';
import { Button } from '@unily/resin-components';
export function SaveButton() {
return <Button label="Save" icon="check-circle-filled" iconPosition="leading" />;
}