@sfperusac/sarksdk
v0.2.0
Published
React component library for Sark applications.
Maintainers
Readme
@sfperusac/sarksdk
React component library compatible with React 18 and React 19.
Installation
npm install @sfperusac/sarksdkStyles
Import the package styles once in your application entry point:
import '@sfperusac/sarksdk/styles.css';Documentation
Run the local component documentation:
npm run docsBuild the documentation site:
npm run build-docsUsage
Import components from their category entry points:
import { CreateButton } from '@sfperusac/sarksdk/buttons';Inputs are available from the inputs entry point:
import { Input, Select, BooleanInput } from '@sfperusac/sarksdk/inputs';Utilities are available from the utils entry point:
import { validators, createFormSchema, deferPromise } from '@sfperusac/sarksdk/utils';Hooks are available from the hooks entry point:
import { useCustomForm } from '@sfperusac/sarksdk/hooks';