Details
Details simplifies the display of non-interactive tags in your UI, allowing for flexible styling and presets.
- Figma:Ready
- Web:Ready
- iOS:Ready
- Package:Sportsbook
Usage
import { Details } from "@caesars-ui/core"
Details gives you a consistent way to display non-interactive text and graphic "tags" to support your UI.
An example of a good use of a Detail is the live score / info section of a Market Template. None of these elements
on their own are clickable or interactive, they serve as information only.
The list prop takes objects that conform to DetailType. These can also be referred to as "tags". Each tag can
have text, a left icon, right icon, custom typography tokens, foreground and background colors giving you lots
of flexibility to create intersting tags.
We've also compiled a list of presets, common tag looks and usages for example { type: 'live' } will give you
a tag that has the live icon animating, and the words "Live" next to it.