UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 711 B
{"version":3,"file":"StarSymbol.mjs","names":[],"sources":["../../../../src/components/Rating/StarSymbol/StarSymbol.tsx"],"sourcesContent":["import { useRatingContext } from '../Rating.context';\nimport { StarIcon } from './StarIcon';\n\nexport interface StarSymbolProps {\n type: 'empty' | 'full';\n}\n\nexport function StarSymbol({ type }: StarSymbolProps) {\n const ctx = useRatingContext();\n return <StarIcon {...ctx.getStyles('starSymbol')} data-filled={type === 'full' || undefined} />;\n}\n\nStarSymbol.displayName = '@mantine/core/StarSymbol';\n"],"mappings":";;;;;AAOA,SAAgB,WAAW,EAAE,QAAyB;AAEpD,QAAO,oBAAC,UAAD;EAAU,GADL,kBAAkB,CACL,UAAU,aAAa;EAAE,eAAa,SAAS,UAAU,KAAA;EAAa,CAAA;;AAGjG,WAAW,cAAc"}