Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@salutejs/caldera-online
Advanced tools
Salute Design System / React UI kit for Caldera-online web applications
Реализация компонентов для создания веб-приложений.
Компоненты реализованы на typescript с помощью react и styled-components;
Использование данного пакета предполагает установку зависимостей: react
& react-dom
;
Использование styled-components
на проект необязательно, так же как и использование typescript
.
Но для того чтобы компоненты работали корректно необходимо установить styled-components
.
$ npm install --save react react-dom
$ npm install --save styled-components
$ npm install --save @salutejs/caldera-online @salutejs/caldera-online-themes
Создайте компонент для подключения глобальных стилей:
import { createGlobalStyle } from 'styled-components';
import { caldera_online__light } from '@salutejs/caldera-online-themes';
const ThemeStyle = createGlobalStyle(caldera_online__light);
export const GlobalStyle = () => (
<>
<ThemeStyle />
</>
);
В корне приложения вызовите компонент глобальных стилей GlobalStyle
:
src/index.tsx
.pages/_app.tsx
и подключите стили в нем.Для корректной работы server side rendering приложение нужно обернуть SSRProvider
(доступен в caldera-online);
Все компоненты доступны из папки components
или напрямую из пакета:
// App.tsx
import { Button } from '@salutejs/caldera-online';
import { textAccent } from '@salutejs/caldera-online-themes/tokens';
export const App = () => {
return (
<Button>Hello, Caldera Online!</Button>
<p style={{color: textAccent}}>
Token usage example
</p>
);
};
FAQs
Salute Design System / React UI kit for Caldera-online web applications
The npm package @salutejs/caldera-online receives a total of 36 weekly downloads. As such, @salutejs/caldera-online popularity was classified as not popular.
We found that @salutejs/caldera-online demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.