Pular para o conteúdo principal

useStickyBar

A hook that returns color tokens with appropriate contrast for text and icon based on the background color of the parent StickyBar.

Import​

import { useStickyBar } from '@resultadosdigitais/tangram-components'

Returns​

resources​

TypeObject

Description​

An object with the color tokens for text and icon.

resources.backgroundColor​

Typestring

Description​

The background color of the parent StickyBar, if it exists.

resources.textColorToken​

Typestring

Description​

Color token for text.

resources.iconColorToken​

Typestring

Description​

Color token for icon.

Feedback​

Para reportar algum problema, solicitar novos ícones, solicitar novos casos de uso de componentes, tirar dúvidas, enviar sugestões ou reportar bugs, entre em contato pelo nosso canal no Slack #tangram-design-system.