/
sdds
/
plasma
Обзор
Документация
Войти
/
sdds
/
plasma
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
dev
website/sdds-cs-docs/docs/components/Indicator.mdx
58 строк
2 KB
Ilya
feat(sdds-cs-docs): edit docs
15 окт 2024, 22:01
15 окт 2024, 22:01
8bdf9ad
Код
Авторство
О чём код?
--- id: indicator title: Indicator --- import { PropsTable, Description } from '@site/src/components'; # Indicator Индикаторы могут отображаться в нескольких размерах и цветах. ## Indicator <Description name="Indicator" /> <PropsTable name="Indicator" exclude={['css']} /> ## Примеры ### Базовое использование ```tsx live import React from 'react'; import { Indicator } from '@salutejs/sdds-cs'; export function App() { return ( <div> <div style={{ display: 'flex' }}> <Indicator size="s" view="default" /> <Indicator size="m" view="default" /> <Indicator size="l" view="default" /> </div> <div style={{ display: 'flex' }}> <Indicator size="s" view="accent" /> <Indicator size="m" view="accent" /> <Indicator size="l" view="accent" /> </div> <div style={{ display: 'flex' }}> <Indicator size="s" view="inactive" /> <Indicator size="m" view="inactive" /> <Indicator size="l" view="inactive" /> </div> <div style={{ display: 'flex' }}> <Indicator size="s" view="positive" /> <Indicator size="m" view="positive" /> <Indicator size="l" view="positive" /> </div> <div style={{ display: 'flex' }}> <Indicator size="s" view="negative" /> <Indicator size="m" view="negative" /> <Indicator size="l" view="negative" /> </div> </div> ); } ```