# DotSymbol **📖 Live documentation:** https://cds.coinbase.com/components/other/DotSymbol/ Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user. ## Import ```tsx import { DotSymbol } from '@coinbase/cds-web/dots/DotSymbol' ``` ## Examples ### Placements ```jsx live function Placements() { const PIN_DIRECTIONS = ['top-start', 'top-end', 'bottom-start', 'bottom-end']; return ( {PIN_DIRECTIONS.map((pinDirection) => ( Child ))} ); } ``` ### Sizes ```jsx live function Sizes() { const SIZES = ['xs', 's', 'm', 'l']; return ( {SIZES.map((size) => ( ))} ); } ``` ### Dotting relative to shape of child You can use the overlap prop to place the dot relative to the corner of the wrapped element. ```jsx live function DottingRelativeToShapeOfChild() { return ( ); } ``` ### Use DotSymbol paired with Icon ```jsx live function UseDotSymbolPairedWithIcon() { return ( ); } ``` ### Use DotSymbol paired with another Asset ```jsx live function UseDotSymbolPairedWithAnotherAsset() { return ( ); } ``` ## Props | Prop | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `active` | `boolean` | No | `-` | Whether the icon is active | | `background` | `ResponsiveProp` | No | `-` | - | | `borderColor` | `ResponsiveProp` | No | `-` | - | | `children` | `ReactNode` | No | `-` | The element that the dot will anchor to | | `className` | `string` | No | `-` | - | | `color` | `ResponsiveProp` | No | `-` | The color of the icon | | `iconClassName` | `string` | No | `-` | - | | `iconName` | `IconName` | No | `-` | Icon name to add to the dot. | | `iconStyle` | `CSSProperties` | No | `-` | - | | `imageClassName` | `string` | No | `-` | - | | `imageStyle` | `CSSProperties` | No | `-` | - | | `overlap` | `circular` | No | `-` | Indicates what shape dot is overlapping | | `pin` | `PinPlacement` | No | `-` | Position of the dot | | `size` | `IconSize` | No | `-` | Size of the dot | | `source` | `string` | No | `-` | Image source path | | `style` | `CSSProperties` | No | `-` | - | | `symbol` | `ReactNode` | No | `-` | Add an arbitrary ReactNode to the dot instead of an icon. | | `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |