1
1
mirror of https://github.com/primer/css.git synced 2024-12-14 06:44:38 +03:00
css/docs/content/components/branch-name.md

28 lines
609 B
Markdown
Raw Normal View History

2019-07-30 02:56:17 +03:00
---
title: Branch name
path: components/branch-name
status: Stable
source: 'https://github.com/primer/css/tree/master/src/branch-name'
bundle: branch-name
---
Branch names can be a link name or not:
```html live
<span class="branch-name">a_new_feature_branch</span>
```
```html live
<a href="#url" class="branch-name">a_new_feature_branch</a>
```
You may also include an octicon before the branch name text:
```jsx live
<span class="branch-name">
{/* <%= octicon("git-branch", width:16, height:16) %> */}
<StyledOcticon icon={getIconByName('git-branch')} mr={1} />
a_new_feature_branch
</span>
```