import {BranchName} from '@primer/react'
BranchName is a label-type component rendered as an <a> tag by default with monospace font.
<BranchName href="#">a_new_feature_branch</BranchName>
| Name | Type | Default | Description |
|---|---|---|---|
| sx | SystemStyleObject | Style overrides to apply to the component. See also overriding styles. | |
| as | React.ElementType | "a" | The underlying element to render — either a HTML element name or a React component. |
| ref | React.RefObject<HTMLAnchorElement> | A ref to the element rendered by this component. Because this component is polymorphic, the type will vary based on the value of the as prop. | |
Additional props are passed to the <a> element. See MDN for a list of props accepted by the <a> element. If an as prop is specified, the accepted props will change accordingly. | |||