Examples
Basic
apiVersion: helm.openshift.io/v1beta1/
kind: HelmChartRepository
metadata:
name: azure-sample-repo0oooo00ooo
spec:
connectionConfig:
url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs
Expandable
apiVersion: helm.openshift.io/v1beta1/
kind: HelmChartRepository
metadata:
name: azure-sample-repo
Props
CodeBlock
Name | Type | Default | Description |
---|---|---|---|
actions | React.ReactNode | null | Actions in the code block header. Should be wrapped with CodeBlockAction. |
children | React.ReactNode | null | Content rendered inside the code block |
className | string | Additional classes passed to the code block wrapper |
CodeBlockAction
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | null | Content rendered inside the code block action |
className | string | Additional classes passed to the code block action |
CodeBlockCode
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | null | Code rendered inside the code block |
className | string | Additional classes passed to the code block pre wrapper | |
codeClassName | string | Additional classes passed to the code block code |
CSS variables
.pf-c-code-block | --pf-c-code-block--BackgroundColor | #f0f0f0 | |
.pf-c-code-block | --pf-c-code-block__header--BorderBottomWidth | 1px | |
.pf-c-code-block | --pf-c-code-block__header--BorderBottomColor | #d2d2d2 | |
.pf-c-code-block | --pf-c-code-block__content--PaddingTop | 1rem | |
.pf-c-code-block | --pf-c-code-block__content--PaddingRight | 1rem | |
.pf-c-code-block | --pf-c-code-block__content--PaddingBottom | 1rem | |
.pf-c-code-block | --pf-c-code-block__content--PaddingLeft | 1rem | |
.pf-c-code-block | --pf-c-code-block__pre--FontFamily | '"Liberation Mono", consolas, "SFMono-Regular", menlo, monaco, "Courier New", monospace' | |
.pf-c-code-block | --pf-c-code-block__pre--FontSize | 0.875rem | |
View source on GitHub